You are here

function sms_sendtophone_menu in SMS Framework 6

Same name and namespace in other branches
  1. 5 modules/sms_sendtophone/sms_sendtophone.module \sms_sendtophone_menu()
  2. 6.2 modules/sms_sendtophone/sms_sendtophone.module \sms_sendtophone_menu()
  3. 7 modules/sms_sendtophone/sms_sendtophone.module \sms_sendtophone_menu()

Implementation of hook_menu().

File

modules/sms_sendtophone/sms_sendtophone.module, line 6

Code

function sms_sendtophone_menu() {
  $items = array();
  $items['sms/sendtophone/%/%'] = array(
    'title' => 'Send to phone',
    'page callback' => 'sms_sendtophone_page',
    'page arguments' => array(
      2,
      3,
    ),
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['sms/sendtophone/thickbox'] = array(
    'title' => 'Send to phone',
    'page callback' => 'sms_sendtophone_thickbox',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/smsframework/sendtophone'] = array(
    'title' => 'Send to phone',
    'description' => 'Configure send to phone functinality.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'sms_sendtophone_admin_overview',
    ),
    'access arguments' => array(
      'administer smsframework',
    ),
  );
  drupal_add_css(drupal_get_path('module', 'sms_sendtophone') . '/sms_sendtophone.css');
  if (module_exists('thickbox')) {
    drupal_add_js(drupal_get_path('module', 'sms_sendtophone') . '/sms_sendtophone.js');
  }
  return $items;
}