You are here

function multiform_test_menu in Multiple forms 7

Same name in this branch
  1. 7 multiform.example.inc \multiform_test_menu()
  2. 7 tests/multiform_test.module \multiform_test_menu()
Same name and namespace in other branches
  1. 7.2 tests/multiform_test.module \multiform_test_menu()

Implementation of hook_menu().

Return value

An array of menu items.

File

tests/multiform_test.module, line 19
@author Kálmán Hosszu - http://drupal.org/user/267481

Code

function multiform_test_menu() {
  $items = array();
  $items['multiform-test/1'] = array(
    'title' => 'Multiform test page 1',
    'page callback' => 'multiform_get_form',
    'page arguments' => array(
      array(
        'multiform_test1_1',
      ),
      array(
        'multiform_test1_2',
      ),
    ),
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  $items['multiform-test/2'] = array(
    'title' => 'Multiform test page 2',
    'page callback' => 'multiform_get_form',
    'page arguments' => array(
      array(
        'multiform_test2_1',
      ),
      array(
        'multiform_test2_2',
      ),
    ),
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  return $items;
}