You are here

function mobile_codes_mobile_codes_menu_alter in Mobile Codes 6.2

Same name and namespace in other branches
  1. 7.2 mobile_codes.module \mobile_codes_mobile_codes_menu_alter()

Implements hook_mobile_codes_menu_alter().

File

./mobile_codes.module, line 69
Mobile Codes core functions.

Code

function mobile_codes_mobile_codes_menu_alter($items) {
  $items['admin/settings/mobile_codes/settings'] = array(
    'title' => 'Settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'mobile_codes_settings_form',
    ),
    'access arguments' => array(
      'administer mobile codes',
    ),
    'file' => 'includes/mobile_codes.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 10,
  );
  $items['ahah/mobile_codes'] = array(
    'title' => 'Mobile Codes AHAH callback',
    'page callback' => 'mobile_codes_ahah',
    'page arguments' => array(
      2,
      3,
    ),
    'access arguments' => array(
      'administer mobile codes providers',
    ),
    'type' => MENU_CALLBACK,
  );
}