function sms_menu in SMS Framework 6.2
Same name and namespace in other branches
- 5 sms.module \sms_menu()
- 6 sms.module \sms_menu()
- 7 sms.module \sms_menu()
Implements hook_menu().
File
- ./
sms.module, line 49 - 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/%'] = 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/carriers'] = array(
'title' => 'Carrier configuration',
'description' => 'Configure supported carriers.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'sms_carriers_admin_form',
),
'access arguments' => array(
'administer smsframework',
),
'file' => 'sms.admin.inc',
);
$items['admin/smsframework/carriers/manage'] = array(
'title' => 'Manage',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/smsframework/carriers/add'] = array(
'title' => 'Add',
'description' => 'Configure supported carriers.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'sms_carriers_edit_form',
),
'access arguments' => array(
'administer smsframework',
),
'file' => 'sms.admin.inc',
'type' => MENU_LOCAL_TASK,
);
$items['admin/smsframework/carriers/%carrier'] = array(
'title' => 'Edit carrier',
'description' => 'Configure supported carriers.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'sms_carriers_edit_form',
3,
),
'access arguments' => array(
'administer smsframework',
),
'type' => MENU_CALLBACK,
'file' => 'sms.admin.inc',
);
$items['admin/smsframework/carriers/delete/%carrier'] = array(
'title' => 'Edit carrier',
'description' => 'Configure supported carriers.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'sms_carriers_delete_form',
4,
),
'access arguments' => array(
'administer smsframework',
),
'type' => MENU_CALLBACK,
'file' => 'sms.admin.inc',
);
return $items;
}