1 menu_test.module | menu_test_menu_name($new_name = '') |
Helper function for the testMenuName() test. Used to change the menu_name parameter of a menu.
Parameters
$new_name: If set, will change the menu_name value.
Return value
The menu_name value to use.:
File
- core/
modules/ simpletest/ tests/ menu_test.module, line 503 - Dummy module implementing hook menu.
Code
function menu_test_menu_name($new_name = '') {
static $name = 'original';
if ($new_name) {
$name = $new_name;
}
return $name;
}