function tracker_pathauto in Pathauto 5.2
Same name and namespace in other branches
- 5 pathauto_user.inc \tracker_pathauto()
- 6 pathauto_user.inc \tracker_pathauto()
Implementation of hook_pathauto() for user-tracker aliases.
File
- ./
pathauto_user.inc, line 67 - Hook implementations for user module integration.
Code
function tracker_pathauto($op) {
switch ($op) {
case 'settings':
$settings = array();
$settings['module'] = 'tracker';
$settings['token_type'] = 'user';
$settings['groupheader'] = t('User-tracker path settings');
$settings['patterndescr'] = t('Pattern for user-tracker page paths');
$settings['patterndefault'] = t('users/[user-raw]/track');
$patterns = token_get_list('user');
foreach ($patterns['user'] as $pattern => $description) {
$settings['placeholders']['[' . $pattern . ']'] = $description;
}
$settings['supportsfeeds'] = 'feed';
$settings['bulkname'] = t('Bulk generate aliases for user-tracker paths that are not aliased');
$settings['bulkdescr'] = t('Generate aliases for all existing user-tracker pages which do not already have aliases.');
return (object) $settings;
default:
break;
}
}