function context_ui_menu_load in Context 6
Same name and namespace in other branches
- 6.2 context_ui/context_ui.module \context_ui_menu_load()
Helper loader to parse menu arguments and load contexts accordingly.
File
- context_ui/
context_ui.module, line 163
Code
function context_ui_menu_load($arg) {
if (is_numeric($arg)) {
return context_load_context($arg);
}
else {
$contexts = context_contexts();
if (!empty($contexts[$arg])) {
return $contexts[$arg];
}
}
}