You are here

function mobile_tools_menu in Mobile Tools 6.3

Same name and namespace in other branches
  1. 5 mobile_tools.module \mobile_tools_menu()
  2. 6 mobile_tools.module \mobile_tools_menu()
  3. 6.2 mobile_tools.module \mobile_tools_menu()
  4. 7.3 mobile_tools.module \mobile_tools_menu()
  5. 7.2 mobile_tools.module \mobile_tools_menu()

Implementation of hook_menu().

File

./mobile_tools.module, line 41
Mobile Tools provides a range of functionality assisting in creating a mobile Drupal site . this functionality contains:

Code

function mobile_tools_menu() {
  $items['admin/settings/mobile-tools'] = array(
    'title' => 'Mobile Tools',
    'description' => t('Configure the detection of the mobile client and the appropriate actions.'),
    '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/settings/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/settings/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/settings/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',
  );
  $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;
}