1 call to SubPathautoUnitTestCase::addAlias()
File
-
./
subpathauto.test, line 130
Class
- SubPathautoUnitTestCase
- @file Test integration for the <a href="/en/work/drupal-api/subpathauto/subpathauto.module/7.x-1.x" title="subpathauto.module" class="local">subpathauto.module</a>.
Code
function addAlias($source, $alias, $langcode = LANGUAGE_NONE) {
$alias = array(
'source' => $source,
'alias' => $alias,
'language' => $langcode,
);
path_save($alias);
drupal_clear_path_cache();
}