function pathauto_is_alias_reserved in Pathauto 7
1 call to pathauto_is_alias_reserved()
- pathauto_alias_uniquify in ./
pathauto.inc - Check to ensure a path alias is unique and add suffix variants if necessary.
1 string reference to 'pathauto_is_alias_reserved'
- pathauto_hook_info in ./
pathauto.module - Implements hook_hook_info().
File
- ./
pathauto.module, line 567 - Main file for the Pathauto module, which automatically generates aliases for content.
Code
function pathauto_is_alias_reserved($alias, $source, $langcode = LANGUAGE_NONE) {
foreach (module_implements('pathauto_is_alias_reserved') as $module) {
$result = module_invoke($module, 'pathauto_is_alias_reserved', $alias, $source, $langcode);
if (!empty($result)) {
// As soon as the first module says that an alias is in fact reserved,
// then there is no point in checking the rest of the modules.
return TRUE;
}
}
return FALSE;
}