You are here

function tracker_pathauto in Pathauto 5

Same name and namespace in other branches
  1. 5.2 pathauto_user.inc \tracker_pathauto()
  2. 6 pathauto_user.inc \tracker_pathauto()

Implementation of hook_pathauto() for user-tracker aliases

File

./pathauto_user.inc, line 53

Code

function tracker_pathauto($op) {
  switch ($op) {
    case 'settings':
      $settings = array();
      $settings['module'] = 'tracker';
      $settings['groupheader'] = t('User-tracker path settings');
      $settings['patterndescr'] = t('Pattern for user-tracker page paths');
      $settings['patterndefault'] = t('user/[user]/track');
      $settings['placeholders'] = array(
        t('[user]') => t('The name of the user.'),
        t('[uid]') => t('The id number of the user.'),
      );
      $settings['supportsfeeds'] = 'feed';
      $settings['bulkname'] = t('Bulk update user-tracker paths');
      $settings['bulkdescr'] = t('Generate aliases for all existing user-tracker pages which do not already have aliases.');
      return (object) $settings;
    default:
      break;
  }
}