You are here

function styleguide_menu_item in Style Guide 7

Generate a random menu item

Parameters

$url: The internal path or external URL being linked to.

Return value

A random menu item, see menu_tree_page_data for a description of the data structure.

1 call to styleguide_menu_item()
styleguide_styleguide in ./styleguide.styleguide.inc
Implements hook_styleguide().

File

./styleguide.module, line 673

Code

function styleguide_menu_item($url) {
  $menu_item = array(
    '#title' => styleguide_sentence(),
    '#href' => $url,
    '#localized_options' => array(),
    '#attributes' => array(),
    '#below' => FALSE,
  );
  return $menu_item;
}