function sms_devel_menu in SMS Framework 6
Same name and namespace in other branches
- 6.2 modules/sms_devel/sms_devel.module \sms_devel_menu()
- 7 modules/sms_devel/sms_devel.module \sms_devel_menu()
Implement hook_menu()
Return value
Drupal menu item array.
File
- modules/
sms_devel/ sms_devel.module, line 22
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',
),
);
$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,
);
$items['admin/smsframework/devel/virtualgw/send'] = array(
'page callback' => 'sms_devel_virtualgw_ahah_send',
//'page arguments' => array(NULL),
'access arguments' => array(
'administer smsframework',
),
'type' => MENU_CALLBACK,
);
$items['admin/smsframework/devel/virtualgw/getactivity'] = array(
'page callback' => 'sms_devel_virtualgw_js_getactivity',
//'page arguments' => array(NULL),
'access arguments' => array(
'administer smsframework',
),
'type' => MENU_CALLBACK,
);
return $items;
}