You are here

function easy_breadcrumb_menu in Easy Breadcrumb 6

Same name and namespace in other branches
  1. 7.2 easy_breadcrumb.module \easy_breadcrumb_menu()
  2. 7 easy_breadcrumb.module \easy_breadcrumb_menu()

Implements hook_menu().

Return value

array An array of menu items. Each menu item has a key corresponding to the Drupal path being registered. The corresponding array value is an associative array that may contain the following key-value pairs: "title": Required. The untranslated title of the menu item. "title callback": Function to generate the title; defaults to t(). If you require only the raw string to be output, set this to FALSE. "title arguments": Arguments to send to t() or your custom callback, with path component substitution as described above.

File

./easy_breadcrumb.module, line 50
The Easy Breadcrumb module provides a block to be embedded in any page, typically at some place near the page's header. Easy Breadcrumb uses the URL (path alias) and the current page's title (when available) to obtain the breadcrumb's…

Code

function easy_breadcrumb_menu() {
  $items = array();
  $items['admin/settings/easy-breadcrumb'] = array(
    'title' => 'Easy Breadcrumb',
    'description' => "Controls settings for the module Easy Breadcrumb",
    'file' => 'includes/easy_breadcrumb.admin.inc',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      '_easy_breadcrumb_general_settings_form',
    ),
    'access arguments' => array(
      'administer easy_breadcrumb',
    ),
  );
  return $items;
}