function mobile_tools_menu in Mobile Tools 7.2
Same name and namespace in other branches
- 5 mobile_tools.module \mobile_tools_menu()
- 6.3 mobile_tools.module \mobile_tools_menu()
- 6 mobile_tools.module \mobile_tools_menu()
- 6.2 mobile_tools.module \mobile_tools_menu()
- 7.3 mobile_tools.module \mobile_tools_menu()
Implements hook_menu().
File
- ./
mobile_tools.module, line 51 - Functionality to ease the creation of mixed device environments.
Code
function mobile_tools_menu() {
$items['admin/config/system/mobile-tools'] = array(
'title' => 'Mobile Tools',
'description' => t('Configure how Drupal must behave for mobile devices.'),
'access arguments' => array(
'configure mobile tools',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'mobile_tools_configuration_form',
),
'type' => MENU_NORMAL_ITEM,
'file' => 'mobile_tools.admin.inc',
);
$items['admin/config/system/mobile-tools/device-detection'] = array(
'title' => 'Notification / redirection',
'description' => 'Configure the detection of the mobile client and the appropriate actions (notifications or redirection)',
'access arguments' => array(
'configure mobile tools',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -4,
'file' => 'mobile_tools.admin.inc',
);
$items['admin/config/system/mobile-tools/themes'] = array(
'title' => 'Theme Switching',
'page arguments' => array(
'mobile_tools_themes_configuration_form',
),
'page callback' => 'drupal_get_form',
'access arguments' => array(
'configure mobile tools',
),
'type' => MENU_LOCAL_TASK,
'weight' => 0,
'file' => 'mobile_tools.admin.inc',
);
$items['admin/config/system/mobile-tools/ext'] = array(
'title' => 'External modules',
'page arguments' => array(
'mobile_tools_external_modules_configuration_form',
),
'page callback' => 'drupal_get_form',
'access arguments' => array(
'configure mobile tools',
),
'type' => MENU_LOCAL_TASK,
'weight' => 10,
'file' => 'mobile_tools.admin.inc',
);
// @todo add a switch link menu item and document how it can be altered
// to move into any other menu tree
// @todo ensure all switch link functions are documented so module
// authors can add multipl switch links if required.
return $items;
}