You are here

function clientside_validation_menu in Clientside Validation 6

Same name and namespace in other branches
  1. 7.2 clientside_validation.module \clientside_validation_menu()
  2. 7 clientside_validation.module \clientside_validation_menu()

Implements hook_menu().

File

./clientside_validation.module, line 100
Add client side validation to a webform.

Code

function clientside_validation_menu() {
  $items['admin/settings/clientside_validation'] = array(
    'title' => 'Clientside Validation',
    'description' => 'Administer clientside validation.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'clientside_validation_admin_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'clientside_validation.admin.inc',
  );
  $items['clientside_validation/ajax'] = array(
    'title' => 'Clientside validation ajax callback',
    'page callback' => '_clientside_validation_ajax_call',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}