function twilio_twiml_menu in Twilio 7
Implements hook_menu().
File
- twilio_twiml/
twilio_twiml.module, line 11 - Twilio TwiML module
Code
function twilio_twiml_menu() {
$items[TWILIO_ADMIN_PATH . '/twiml'] = array(
'title' => 'TwiML Manager',
'description' => 'Manage TwiML documents.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'twilio_twiml_manager_form',
),
'access arguments' => array(
'administer twilio',
),
'file' => 'twilio_twiml.admin.inc',
'type' => MENU_LOCAL_TASK,
'weight' => -5,
);
$items[TWILIO_ADMIN_PATH . '/twiml_delete/%twilio_twiml'] = array(
'title' => 'TwiML Delete',
'description' => 'Manage TwiML documents.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'twilio_twiml_delete_confirm',
5,
),
'access arguments' => array(
'administer twilio',
),
'file' => 'twilio_twiml.admin.inc',
'type' => MENU_CALLBACK,
'weight' => -5,
);
$items['twilio/twiml/%twilio_twiml'] = array(
'page callback' => 'twilio_twiml_display',
'page arguments' => array(
2,
),
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
return $items;
}