You are here

function w3c_validator_menu in W3C Validator 7

Same name and namespace in other branches
  1. 6 w3c_validator.module \w3c_validator_menu()

Implements hook_menu().

File

./w3c_validator.module, line 15

Code

function w3c_validator_menu() {
  $items = array();
  $items['admin/config/development/w3c_validator'] = array(
    'title' => 'W3C Validator',
    'description' => 'Settings for the W3C validator API.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'w3c_validator_admin_settings',
    ),
    'access arguments' => array(
      'administer_w3c',
    ),
    'file' => 'w3c_validator.admin.inc',
  );
  $items['admin/reports/w3c_validator'] = array(
    'title' => 'Site W3C validation',
    'description' => 'Site W3C validation checker page.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'w3c_validator_site_validation_report_page',
    ),
    'access arguments' => array(
      'use_w3c',
    ),
    'file' => 'w3c_validator.site_validation_report.page.inc',
  );
  $items['validator'] = array(
    'title' => 'Validate a URI',
    'description' => 'Validate URI using the W3C Validator API',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'w3c_validator_uri_validator_page',
    ),
    'access arguments' => array(
      'use_w3c',
    ),
    'file' => 'w3c_validator.uri_validator.page.inc',
  );
  return $items;
}