1 menu_test.module menu_test_change_menu_type($new_type = NULL)

Helper function for MenuChangeTestCase.

Parameters

string $new_type: If set, will change the type value.

Return value

int: The type value to use.

File

core/modules/simpletest/tests/menu_test.module, line 596
Dummy module implementing hook menu.

Code

function menu_test_change_menu_type($new_type = NULL) {
  static $type = MENU_NORMAL_ITEM;
  if ($new_type == 'callback') {
    $type = MENU_CALLBACK;
  }
  return $type;
}