function sms_actions_menu in SMS Framework 6
Same name and namespace in other branches
- 6.2 modules/sms_actions/sms_actions.module \sms_actions_menu()
- 7 modules/sms_actions/sms_actions.module \sms_actions_menu()
Implementation of hook_menu().
File
- modules/
sms_actions/ sms_actions.module, line 73 - Provides a "Send SMS" action and the ability to define custom triggers for incoming messages.
Code
function sms_actions_menu() {
$items['admin/smsframework/actions'] = array(
'title' => 'SMS Actions',
'description' => 'Define custom triggers for incoming SMS messages.',
'access arguments' => array(
'administer smsframework',
),
'page callback' => 'sms_actions_command_list',
);
$items['admin/smsframework/actions/list'] = array(
'title' => 'List',
'access arguments' => array(
'administer smsframework',
),
'weight' => -5,
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/smsframework/actions/add'] = array(
'title' => 'Add command',
'access arguments' => array(
'administer smsframework',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'sms_actions_edit_command_form',
),
'type' => MENU_LOCAL_TASK,
);
$items['admin/smsframework/actions/edit'] = array(
'title' => 'Edit command',
'access arguments' => array(
'administer smsframework',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'sms_actions_edit_command_form',
4,
),
'type' => MENU_CALLBACK,
);
return $items;
}