You are here

function sms_valid_menu in SMS Framework 7

Same name and namespace in other branches
  1. 6.2 modules/sms_valid/sms_valid.module \sms_valid_menu()
  2. 6 modules/sms_valid/sms_valid.module \sms_valid_menu()

Implements hook_menu().

File

modules/sms_valid/sms_valid.module, line 42
Number validation feature module for Drupal SMS Framework.

Code

function sms_valid_menu() {
  $items = array();
  $items['admin/smsframework/validation'] = array(
    'title' => 'Number validation',
    'description' => 'Configure number validation and rulesets.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'sms_valid_admin_settings_form',
      NULL,
    ),
    'access arguments' => array(
      'administer smsframework',
    ),
    'file' => 'sms_valid.admin.inc',
  );
  $items['admin/smsframework/validation/settings'] = array(
    'title' => 'Settings',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/smsframework/validation/rulesets'] = array(
    'title' => 'Rulesets',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'sms_valid_admin_rulesets_form',
      NULL,
    ),
    'access arguments' => array(
      'administer smsframework',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => -9,
    'file' => 'sms_valid.admin.inc',
  );
  $items['admin/smsframework/validation/ruleset'] = array(
    'title' => 'Add/Edit ruleset',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'sms_valid_admin_ruleset_form',
    ),
    'access arguments' => array(
      'administer smsframework',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => -8,
    'file' => 'sms_valid.admin.inc',
  );
  $items['admin/smsframework/validation/ruleset/%'] = array(
    'title' => 'Edit ruleset',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'sms_valid_admin_ruleset_form',
      4,
    ),
    'access arguments' => array(
      'administer smsframework',
    ),
    'type' => MENU_CALLBACK,
    'weight' => -7,
    'file' => 'sms_valid.admin.inc',
  );
  $items['admin/smsframework/validation/test'] = array(
    'title' => 'Test validation',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'sms_valid_admin_test_form',
      NULL,
    ),
    'access arguments' => array(
      'administer smsframework',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => -6,
    'file' => 'sms_valid.admin.inc',
  );
  return $items;
}