You are here

function nexmo_menu in Nexmo SMS Gateway 7

Implements hook_menu().

File

./nexmo.module, line 26
Provides NEXMO implementation methods.

Code

function nexmo_menu() {
  $items = array();
  $items['admin/smsframework/gateways/nexmo'] = array(
    'title' => 'Nexmo Configuration',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'nexmo_admin_form',
    ),
    'access arguments' => array(
      'administer nexmosmsgateway',
    ),
    'file' => 'nexmo.admin.inc',
  );
  $items['sms/nexmo/inbound'] = array(
    'title' => 'Nexmo SMS message receiver',
    'page callback' => 'nexmo_receive_message',
    'access arguments' => array(
      'administer nexmosmsgateway',
    ),
  );
  $items['sms/nexmo/receipt'] = array(
    'title' => 'Nexmo SMS receipt receiver',
    'page callback' => 'nexmo_receive_receipt',
    'access arguments' => array(
      'administer nexmosmsgateway',
    ),
  );
  return $items;
}