example_element_menu

Definition

example_element_menu($may_cache)
developer/examples/example_element.module, line 32

Description

Implementation of hook_menu().

This just defines a page that we can use to test our form elements.

Code

<?php
function example_element_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'example_element', 
      'title' => t('Example element demo'),
      'access' => user_access('access content'),
      'type' => MENU_NORMAL_ITEM,
      'callback' => 'drupal_get_form',
      'callback arguments' => array('example_element_demo'),
    );
  }
  return $items;
}
?>
 
 

Drupal is a registered trademark of Dries Buytaert.