function tracker_pathauto in Pathauto 6
Same name and namespace in other branches
- 5.2 pathauto_user.inc \tracker_pathauto()
- 5 pathauto_user.inc \tracker_pathauto()
Implementation of hook_pathauto() for user-tracker aliases.
File
- ./
pathauto_user.inc, line 66 - 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 paths');
$settings['patterndescr'] = t('Pattern for user-tracker page paths');
$settings['patterndefault'] = '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;
}
}