summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests/hook_menu.module
blob: 3b11fa042c0d407644657ec3e806c574425f81de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
// $Id$

/**
 * @file
 * Dummy module implementing hook menu to test changing the menu name.
 */

 /**
 * The name of the menu changes during the course of this test. Use a $_GET.
 */
function hook_menu_menu() {

  $items['menu_name_test'] = array(
    'title' => t('Test menu_name router item'),
    'page callback' => 'node_save',
    'menu_name' => isset($_GET["hook_menu_name"]) ? $_GET["hook_menu_name"] : 'original',
  );
  return $items;
}