function biblio_user_to_arg in Bibliography Module 6
Same name and namespace in other branches
- 6.2 biblio.module \biblio_user_to_arg()
Return actual argument for %biblio_user placeholders in menu paths
File
- ./
biblio.module, line 555
Code
function biblio_user_to_arg($arg) {
// Give back the current user uid when called from eg. tracker, aka.
// with an empty arg. Also use the current user uid when called from
// the menu with a % for the current account link.
return empty($arg) || $arg == '%' ? $GLOBALS['user']->uid : $arg;
}