You are here

function sms_menu in SMS Framework 5

Same name and namespace in other branches
  1. 6.2 sms.module \sms_menu()
  2. 6 sms.module \sms_menu()
  3. 7 sms.module \sms_menu()

Implementation of hook_menu().

File

./sms.module, line 79
The core of the SMS Framework. Provides gateway managment and API for sending and receiving SMS messages.

Code

function sms_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/smsframework',
      'title' => t('SMS Framework'),
      'description' => t('Control how your site uses SMS.'),
      'position' => 'right',
      'callback' => 'system_admin_menu_block_page',
      'access' => user_access('administer smsframework'),
    );
    $items[] = array(
      'path' => 'admin/smsframework/gateways',
      'title' => t('Gateway configuration'),
      'description' => t('Configure gateways and chose the default gateway.'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'sms_admin_default_form',
      ),
      'access' => user_access('administer smsframework'),
    );
    $items[] = array(
      'path' => 'admin/smsframework/gateways/edit',
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'sms_admin_gateway_form',
      ),
      'access' => user_access('administer smsframework'),
      'type' => MENU_CALLBACK,
    );
  }
  return $items;
}