You are here

function skinr_test_hook_dynamic_loading in Skinr 8.2

Same name and namespace in other branches
  1. 7.2 tests/skinr_test/skinr_test.module \skinr_test_hook_dynamic_loading()

Page callback for 'hook dynamic loading' test.

If the hook is dynamically loaded correctly, the menu callback should return 'success!'.

1 string reference to 'skinr_test_hook_dynamic_loading'
skinr_test_menu in tests/modules/skinr_test/skinr_test.module
Implements hook_menu().

File

tests/modules/skinr_test/skinr_test.module, line 95
Skinr testing module.

Code

function skinr_test_hook_dynamic_loading() {
  if (skinr_hook('skinr_test', 'skinr_group_info') && function_exists('skinr_test_skinr_group_info')) {
    return 'success!';
  }
  return 'failed!';
}