diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-09-02 19:23:02 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-09-02 19:23:02 +0000 |
commit | c17a5e70bca3113bc7e9dbb42c01e9abe47aa063 (patch) | |
tree | 5dd373f83c2921f7217f7b65516e07b90c18a64c /modules/simpletest/tests/hook_menu.module | |
parent | 6511f56e4b62f667138b6bab184b20c53e651cee (diff) | |
download | brdo-c17a5e70bca3113bc7e9dbb42c01e9abe47aa063.tar.gz brdo-c17a5e70bca3113bc7e9dbb42c01e9abe47aa063.tar.bz2 |
#285309 by pwolanin: menu_name in hook_menu is ignored on updates
Diffstat (limited to 'modules/simpletest/tests/hook_menu.module')
-rw-r--r-- | modules/simpletest/tests/hook_menu.module | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/simpletest/tests/hook_menu.module b/modules/simpletest/tests/hook_menu.module new file mode 100644 index 000000000..3b11fa042 --- /dev/null +++ b/modules/simpletest/tests/hook_menu.module @@ -0,0 +1,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; +}
\ No newline at end of file |