You are here

function sms_menu in SMS Framework 6

Same name and namespace in other branches
  1. 5 sms.module \sms_menu()
  2. 6.2 sms.module \sms_menu()
  3. 7 sms.module \sms_menu()

Implementation of hook_menu().

File

./sms.module, line 158
The core of the SMS Framework. Provides gateway managment and API for sending and receiving SMS messages.

Code

function sms_menu() {
  $items = array();
  $items['admin/smsframework'] = array(
    'title' => 'SMS Framework',
    'description' => 'Control how your site uses SMS.',
    'position' => 'right',
    'page callback' => 'system_admin_menu_block_page',
    'access arguments' => array(
      'administer smsframework',
    ),
    'file' => 'system.admin.inc',
    'file path' => drupal_get_path('module', 'system'),
  );
  $items['admin/smsframework/gateways'] = array(
    'title' => 'Gateway configuration',
    'description' => 'Configure gateways and chose the default gateway.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'sms_admin_default_form',
      NULL,
    ),
    'access arguments' => array(
      'administer smsframework',
    ),
    'file' => 'sms.admin.inc',
  );
  $items['admin/smsframework/gateways/list'] = array(
    'title' => 'List',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -9,
  );
  $items['admin/smsframework/gateways/%'] = array(
    'title callback' => 'sms_admin_gateway_title',
    'title arguments' => array(
      3,
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'sms_admin_gateway_form',
      3,
    ),
    'access arguments' => array(
      'administer smsframework',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'sms.admin.inc',
  );
  $items['admin/smsframework/settings'] = array(
    'title' => 'Core settings',
    'description' => 'Global settings and defaults for the SMS Framework.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'sms_admin_settings_form',
      NULL,
    ),
    'access arguments' => array(
      'administer smsframework',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => -10,
    'file' => 'sms.admin.inc',
  );
  return $items;
}