function user_pathauto in Pathauto 5
Same name and namespace in other branches
- 5.2 pathauto_user.inc \user_pathauto()
- 6.2 pathauto.module \user_pathauto()
- 6 pathauto_user.inc \user_pathauto()
- 7 pathauto.module \user_pathauto()
Implementation of hook_pathauto() for user aliases
File
- ./
pathauto_user.inc, line 6
Code
function user_pathauto($op) {
switch ($op) {
case 'settings':
$settings = array();
$settings['module'] = 'user';
$settings['groupheader'] = t('User path settings');
$settings['patterndescr'] = t('Pattern for user account page paths');
$settings['patterndefault'] = t('user/[user]');
$settings['placeholders'] = array(
t('[user]') => t('The name of the user.'),
t('[uid]') => t('The id number of the user.'),
);
$settings['bulkname'] = t('Bulk update user paths');
$settings['bulkdescr'] = t('Generate aliases for all existing user account pages which do not already have aliases.');
return (object) $settings;
default:
break;
}
}