You are here

function entity_autocomplete_test_menu in Entity Autocomplete 7

Implements hook_menu().

File

tests/entity_autocomplete_test.module, line 11
Dummy module implementing a form to test Entity Autocomplete form element.

Code

function entity_autocomplete_test_menu() {
  $items = array();
  $items['entity_autocomplete_test/%'] = array(
    'title' => 'Entity Autocomplete form test',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'entity_autocomplete_test_form',
      1,
      array(),
      2,
    ),
    'access arguments' => array(
      'use entity autocomplete',
    ),
    'type' => MENU_SUGGESTED_ITEM,
  );
  $items['entity_autocomplete_test/bundle/%/%entity_autocomplete_bundles'] = array(
    'title' => 'Entity Autocomplete form test',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'entity_autocomplete_test_form',
      2,
      3,
      4,
    ),
    'access arguments' => array(
      'use entity autocomplete',
    ),
    'type' => MENU_SUGGESTED_ITEM,
  );
  return $items;
}