function me_theme_menu_item_link in me aliases 6
Same name and namespace in other branches
- 6.2 me.module \me_theme_menu_item_link()
Implementation of theme_menu_item_link().
2 string references to 'me_theme_menu_item_link'
- me_theme_registry_alter in ./
me.module - Implementation of hook_theme_registry_alter().
- me_uninstall in ./
me.install - Implementation of hook_uninstall().
File
- ./
me.module, line 51 - Provides 'me' aliases to allow users to enter 'me' in common paths instead of their user id.
Code
function me_theme_menu_item_link($link) {
_me_check_path($link);
// Check if we got a valid function from the registry rebuild.
$function = me_variable_get('me_theme_menu_item_link');
if (empty($function) || !function_exists($function)) {
// If not, then go through the available themes to get the correct function to use.
if (isset($GLOBALS['custom_theme']) && function_exists($GLOBALS['custom_theme'] . '_menu_item_link')) {
$function = $GLOBALS['custom_theme'] . '_menu_item_link';
}
elseif (isset($GLOBALS['theme_key']) && function_exists($GLOBALS['theme_key'] . '_menu_item_link')) {
$function = $GLOBALS['theme_key'] . '_menu_item_link';
}
elseif (isset($GLOBALS['theme_engine']) && function_exists($GLOBALS['theme_engine'] . '_menu_item_link')) {
$function = $GLOBALS['theme_engine'] . '_menu_item_link';
}
else {
$function = 'theme_menu_item_link';
}
}
return $function($link);
}