You are here

function date_api_menu in Date 8

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

Implements hook_menu().

Creates a 'Date API' section on the administration page for Date modules to use for their configuration and settings.

File

date_api/date_api.module, line 150
This module will make the date API available to other modules. Designed to provide a light but flexible assortment of functions and constants, with more functionality in additional files that are not loaded unless other modules specifically include them.

Code

function date_api_menu() {
  $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;
}