You are here

function cors_menu in CORS 7

Implements hook_menu().

File

./cors.module, line 11
Allows Cross-origin resource sharing.

Code

function cors_menu() {
  $items = array();
  $items['admin/config/services/cors'] = array(
    'title' => 'CORS',
    'description' => 'Enable Cross-origin resource sharing',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'cors_admin_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
  );
  return $items;
}