function mobile_tools_menu in Mobile Tools 6.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()
- 7.3 mobile_tools.module \mobile_tools_menu()
- 7.2 mobile_tools.module \mobile_tools_menu()
Implementation of hook_menu().
File
- ./
mobile_tools.module, line 18 - Primarily Drupal hooks.
Code
function mobile_tools_menu() {
$items['admin/settings/mobile-tools'] = array(
'title' => 'Mobile Tools',
'description' => 'Change detection, theme switching and general configuration settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'mobile_tools_configuration_form',
),
'access arguments' => array(
'configure Mobile Tools',
),
'file' => 'mobile_tools.admin.inc',
);
$items['admin/settings/mobile-tools/configuration'] = array(
'title' => 'Configuration',
'description' => 'Configure mobile and desktop URLs, redirection options and other general settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'mobile_tools_configuration_form',
),
'access arguments' => array(
'configure Mobile Tools',
),
'file' => 'mobile_tools.admin.inc',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/settings/mobile-tools/detection'] = array(
'title' => 'Detection',
'description' => 'Configure how detection is handled.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'mobile_tools_external_modules_configuration_form',
),
'access arguments' => array(
'configure Mobile Tools',
),
'file' => 'mobile_tools.admin.inc',
'type' => MENU_LOCAL_TASK,
);
$items['admin/settings/mobile-tools/theme-switching'] = array(
'title' => 'Theme switching',
'description' => 'Configure when and how to switch themes.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'mobile_tools_themes_configuration_form',
),
'access arguments' => array(
'configure Mobile Tools',
),
'file' => 'mobile_tools.admin.inc',
'type' => MENU_LOCAL_TASK,
);
$items['mt/desktop/%mobile_tools_menu_link'] = array(
'title' => 'Full site',
'page callback' => 'mobile_tools_menu_switch_site',
'access callback' => 'mobile_tools_menu_link_access',
'access arguments' => array(
'desktop',
),
);
$items['mt/mobile/%mobile_tools_menu_link'] = array(
'title' => 'Mobile Site',
'page callback' => 'mobile_tools_menu_switch_site',
'access callback' => 'mobile_tools_menu_link_access',
'access arguments' => array(
'mobile',
),
);
return $items;
}