You are here

function mobile_tools_menu in Mobile Tools 5

Same name and namespace in other branches
  1. 6.3 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 40
Mobile Tools provides a range of functionality assisting in creating a mobile drupal site . this functionality contains:

Code

function mobile_tools_menu($may_cache) {
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/settings/mobile-tools',
      'title' => t('Mobile Tools'),
      'description' => t('Configure the detection of the mobile client and the appropriate actions.'),
      'access' => user_access('configure mobile tools'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'mobile_tools_detection_configuration_form',
      ),
      'type' => MENU_NORMAL_ITEM,
    );
    $items[] = array(
      'path' => 'admin/settings/mobile-tools/device-detection',
      'title' => t('Notification / redirection'),
      'description' => 'Configure the detection of the mobile client and the appropriate actions (notifications or redirection)',
      'access' => user_access('configure mobile tools'),
      'type' => MENU_DEFAULT_LOCAL_TASK,
      'weight' => -4,
    );
    $items[] = array(
      'path' => 'admin/settings/mobile-tools/themes',
      'title' => t('Mobile theme'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'mobile_tools_themes_configuration_form',
      ),
      'access' => user_access('configure mobile tools'),
      'type' => MENU_LOCAL_TASK,
      'weight' => 0,
    );
    $items[] = array(
      'path' => 'admin/settings/mobile-tools/roles',
      'title' => t('Mobile roles'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'mobile_tools_roles_configuration_form',
      ),
      'access' => user_access('configure mobile tools'),
      'type' => MENU_LOCAL_TASK,
      'weight' => 0,
    );

    /*$items[] = array(
        'path' => 'admin/settings/mobile-tools/ready',
        'title' => t('ready.mobi'),
        'callback' => 'mobile_tools_ready_mobi',
        'callback arguments' => array('mobile_tools_roles_configuration_form'),
        'access' => user_access('configure mobile tools'),
        'type' => MENU_LOCAL_TASK,
        'weight' => 0,
      );*/
  }
  return $items;
}