function opigno_context_build_menu in Opigno 7.0
@file Contains all hook_implementations and module specific API.
File
- modules/
opigno_context/ opigno_context.module, line 8 - Contains all hook_implementations and module specific API.
Code
function opigno_context_build_menu($context = NULL) {
$menu = array();
if (!isset($context)) {
$context = opigno_context();
}
if (preg_match('/^og:[0-9]$/', $context)) {
$menu = opigno_context_trail($context);
}
elseif (preg_match('/^user(:[0-9])?$/', $context)) {
dpm('user');
}
return $menu;
}