function mobile_codes_menu_alter in Mobile Codes 7.2
Same name and namespace in other branches
- 6.2 mobile_codes.module \mobile_codes_menu_alter()
Implements hook_menu_alter().
File
- ./
mobile_codes.module, line 84 - Mobile Codes core functions.
Code
function mobile_codes_menu_alter(&$items) {
// @TODO - Make this better.
if (isset($items['admin/config/content/mobile_codes/blocks'])) {
$items['admin/config/content/mobile_codes'] = array_merge($items['admin/config/content/mobile_codes/blocks'], array(
'title' => 'Mobile Codes',
'type' => MENU_NORMAL_ITEM,
));
$export_ui = array(
'blocks',
'presets',
'providers',
);
foreach ($export_ui as $path) {
$items["admin/config/content/mobile_codes/{$path}"]['type'] = $path == 'blocks' ? MENU_DEFAULT_LOCAL_TASK : MENU_LOCAL_TASK;
$items["admin/config/content/mobile_codes/{$path}"]['parent'] = 'admin/config/content/mobile_codes';
}
}
}