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