function chain_menu_access_test_enabled in Chain Menu Access API 6
Same name and namespace in other branches
- 8 tests/chain_menu_access_test.module \chain_menu_access_test_enabled()
- 7.2 tests/chain_menu_access_test.module \chain_menu_access_test_enabled()
- 7 tests/chain_menu_access_test.module \chain_menu_access_test_enabled()
Dynamically turn this module on and off.
1 string reference to 'chain_menu_access_test_enabled'
- chain_menu_access_test_menu_alter in tests/
chain_menu_access_test.module - Implements hook_menu_alter().
File
- tests/
chain_menu_access_test.module, line 20 - Dummy module implementing menu access functions to test the Chain Menu Access API module.
Code
function chain_menu_access_test_enabled($path) {
$enabled = !empty($_GET['enable_cma']);
drupal_set_message("Access to {$path} is " . ($enabled ? 'ENABLED' : 'DISABLED') . '.');
return $enabled;
}