You are here

function sms_twilio_menu in Twilio SMS Integration 7

Same name and namespace in other branches
  1. 6 sms_twilio.module \sms_twilio_menu()
  2. 7.2 sms_twilio.module \sms_twilio_menu()

Implements hook_menu().

Twilio will POST to this path when an SMS is received

File

./sms_twilio.module, line 188
Adds support for sending SMS messages using the Twilio gateway.

Code

function sms_twilio_menu() {
  $items = array();
  $items['sms/twilio/incoming'] = array(
    'title' => 'Incoming Twilio SMS',
    'page callback' => 'sms_twilio_incoming',
    'access callback' => TRUE,
    'menu_name' => 'SMS',
    'type' => MENU_CALLBACK,
  );
  return $items;
}