View source
<?php
include 'sms_devel.send_form.inc';
include 'sms_devel.virtualgw.inc';
include 'sms_devel.virtualgw.admin.inc';
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',
'access arguments' => array(
'administer smsframework',
),
'type' => MENU_CALLBACK,
);
$items['admin/smsframework/devel/virtualgw/getactivity'] = array(
'page callback' => 'sms_devel_virtualgw_js_getactivity',
'access arguments' => array(
'administer smsframework',
),
'type' => MENU_CALLBACK,
);
return $items;
}
function sms_devel_gateway_info() {
return array(
'virtualgw' => array(
'name' => 'Devel virtual gateway',
'send' => 'sms_devel_virtualgw_send',
'configure form' => 'sms_devel_virtualgw_settings_form',
),
);
}