You are here

function modernizr_menu in Modernizr 8

Same name and namespace in other branches
  1. 7.3 modernizr.module \modernizr_menu()
  2. 7.2 modernizr.module \modernizr_menu()

Implements hook_menu().

File

./modernizr.module, line 37
Main module file for Modernizr

Code

function modernizr_menu() {
  $items = array();
  $items['modernizr_settings'] = array(
    'title' => 'Modernizr settings',
    'description' => 'Queries Drupal for Modernizr dependencies and generates a custom link to the Modernizr builder.',
    'route_name' => 'modernizr_settings',
    // 'page callback' => 'modernizr_generate_url',
    'file' => 'modernizr.admin.inc',
    'type' => MENU_NORMAL_ITEM,
    'access arguments' => array(
      'administer modernizr',
    ),
  );
  return $items;
}