function pathauto_path_alias_types in Pathauto 6.2
Same name and namespace in other branches
- 5.2 pathauto.module \pathauto_path_alias_types()
- 6 pathauto.module \pathauto_path_alias_types()
Implements hook_path_alias_types().
Used primarily by the bulk delete form.
File
- ./
pathauto.module, line 141 - Main file for the Pathauto module, which automatically generates aliases for content.
Code
function pathauto_path_alias_types() {
$objects['user/'] = t('Users');
$objects['node/'] = t('Content');
if (module_exists('blog')) {
$objects['blog/'] = t('User blogs');
}
if (module_exists('taxonomy')) {
$objects['taxonomy/term/'] = t('Taxonomy terms');
}
if (module_exists('forum')) {
$objects['forum/'] = t('Forums');
}
return $objects;
}