You are here

function sms_devel_menu in SMS Framework 7

Same name and namespace in other branches
  1. 6.2 modules/sms_devel/sms_devel.module \sms_devel_menu()
  2. 6 modules/sms_devel/sms_devel.module \sms_devel_menu()

Implements hook_menu().

File

modules/sms_devel/sms_devel.module, line 22
Development and testing tools for Drupal SMS Framework.

Code

function sms_devel_menu() {
  $items = array();
  $items['admin/smsframework/devel'] = array(
    'title' => 'Devel',
    'description' => 'Development and testing tools.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'sms_devel_send_form',
      NULL,
    ),
    'access arguments' => array(
      'administer smsframework',
    ),
    'file' => 'sms_devel.send_form.inc',
  );
  $items['admin/smsframework/devel/send_form'] = array(
    'title' => 'Test send form',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/smsframework/devel/virtualgw'] = array(
    'title' => 'Virtual gateway',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'sms_devel_virtualgw_form',
      NULL,
    ),
    'access arguments' => array(
      'administer smsframework',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => -9,
    'file' => 'sms_devel.virtualgw.admin.inc',
  );
  $items['admin/smsframework/devel/virtualgw/send'] = array(
    'page callback' => 'sms_devel_virtualgw_ahah_send',
    'access arguments' => array(
      'administer smsframework',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'sms_devel.virtualgw.inc',
  );
  $items['sms/virtualgw/receiver'] = array(
    'page callback' => 'sms_devel_virtualgw_receiver',
    'page arguments' => array(),
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
    'file' => 'sms_devel.virtualgw.inc',
  );
  $items['admin/smsframework/devel/virtualgw/getactivity'] = array(
    'page callback' => 'sms_devel_virtualgw_js_getactivity',
    'page arguments' => array(),
    'access arguments' => array(
      'administer smsframework',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}