You are here

function sms_user_menu in SMS Framework 6

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

Implementation of hook_menu().

File

modules/sms_user/sms_user.module, line 42
Provides integration between the SMS Framework and Drupal users.

Code

function sms_user_menu() {
  $items = array();
  $items['admin/smsframework/sms_user'] = array(
    'title' => 'SMS User',
    'description' => 'Edit options for SMS and user integration.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'sms_user_admin_settings',
    ),
    'access arguments' => array(
      'administer sms_user',
    ),
  );
  $items['user/%user/mobile'] = array(
    'title' => 'Mobile settings',
    'page callback' => 'sms_user_settings',
    'page arguments' => array(
      'sms_user_form',
    ),
    'type' => MENU_LOCAL_TASK,
    'access callback' => 'user_edit_access',
    'access arguments' => array(
      1,
    ),
  );
  return $items;
}