You are here

function date_api_menu in Date 7.2

Same name and namespace in other branches
  1. 8 date_api/date_api.module \date_api_menu()
  2. 5.2 date_api.module \date_api_menu()
  3. 6.2 date_api.module \date_api_menu()
  4. 7.3 date_api/date_api.module \date_api_menu()

Implements hook_menu().

File

date_api/date_api.module, line 131
This module will make the date API available to other modules.

Code

function date_api_menu() {

  // Creates a 'Date API' section on the administration page for Date modules
  // to use for their configuration and settings.
  $items['admin/config/date'] = array(
    'title' => 'Date API',
    'description' => 'Settings for modules the use the Date API.',
    'position' => 'left',
    'weight' => -10,
    'page callback' => 'system_admin_menu_block_page',
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'system.admin.inc',
    'file path' => drupal_get_path('module', 'system'),
  );
  return $items;
}