You are here

function uikit_components_menu in UIkit Components 7.2

Same name and namespace in other branches
  1. 7.3 uikit_components.module \uikit_components_menu()
  2. 7 uikit_components.module \uikit_components_menu()

Implements hook_menu().

File

./uikit_components.module, line 37
UIkit Components.

Code

function uikit_components_menu() {

  // The <uk-nav-header>, <uk-parent> and <uk-nav-divider> menu items allow us
  // to enter these values in the path field when creating a new menu item so we
  // can theme navbar menus correctly.
  $items['<uk-nav-header>'] = array(
    'page callback' => 'drupal_not_found',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  $items['<uk-parent>'] = array(
    'page callback' => 'drupal_not_found',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  $items['<uk-nav-divider>'] = array(
    'page callback' => 'drupal_not_found',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  $items['admin/config/user-interface/uikit-components'] = array(
    'title' => 'UIkit components',
    'description' => 'Configure UIkit components.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'uikit_components_admin_settings_form',
    ),
    'access arguments' => array(
      'administer menu',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  return $items;
}