You are here

function pathauto_path_alias_types in Pathauto 5.2

Same name and namespace in other branches
  1. 6.2 pathauto.module \pathauto_path_alias_types()
  2. 6 pathauto.module \pathauto_path_alias_types()

Implementation of hook_path_alias_types().

Used primarily by the bulk delete form.

File

./pathauto.module, line 194
Main file for the Pathauto module, which automatically generates aliases for content.

Code

function pathauto_path_alias_types() {
  $objects = array(
    'user/' => t('users'),
    'node/' => t('content'),
  );
  if (module_exists('blog')) {
    $objects['blog/'] = t('user blogs');
  }
  if (module_exists('taxonomy')) {
    $objects['taxonomy/'] = t('vocabularies and terms');
  }
  if (module_exists('taxonomy')) {
    $objects['user/%/track'] = t('user trackers');
  }
  if (module_exists('forum')) {
    $objects['forum/%'] = t('forums');
  }
  return $objects;
}