function menu_node_test_set in Menu Node API 7
Store static variables to indicate that hooks fired.
5 calls to menu_node_test_set()
- MenuNodeAPIHookTestCase::testMenuNodeAPIHooks in tests/
menu_node.test - Run tests against the menu_node_test.module.
- menu_node_test_get in tests/
menu_node_test.module - Get the static value.
- menu_node_test_menu_node_invoke_delete in tests/
menu_node_test.module - Implements hook_menu_node_invoke_delete().
- menu_node_test_menu_node_invoke_insert in tests/
menu_node_test.module - Implements hook_menu_node_invoke_insert().
- menu_node_test_menu_node_invoke_update in tests/
menu_node_test.module - Implements hook_menu_node_invoke_update().
File
- tests/
menu_node_test.module, line 11 - Test module for Menu Node API hooks.
Code
function menu_node_test_set($value = NULL) {
static $storage;
if (is_null($value) && isset($storage)) {
return $storage;
}
$storage = $value;
}