function me_to_arg in me aliases 8
Same name and namespace in other branches
- 6.2 me.module \me_to_arg()
- 6 me.module \me_to_arg()
- 7 me.module \me_to_arg()
Menu to_arg function for %me.
1 call to me_to_arg()
- me_category_to_arg in ./
me.module - Menu to_arg function for %me_category.
File
- ./
me.module, line 409 - Provides 'me' aliases to allow users to enter 'me' in common paths instead of their user id.
Code
function me_to_arg($arg, $map, $index) {
$uid = user_uid_optional_to_arg($arg, $map, $index);
if (me_variable_get('me_rewrite_link') && !_me_user_disabled()) {
$uid = $uid == $GLOBALS['user']->uid ? _me_get_me_alias() : $uid;
}
return $uid;
}