function example_hook_info in Coder 7.2
Same name and namespace in other branches
- 7 coder_upgrade/tests/old/samples/example.module \example_hook_info()
Implement hook_hook_info().
Use case 1 - returns array directly.
File
- coder_upgrade/
tests/ old/ samples/ example.module, line 2778
Code
function example_hook_info() {
return array(
'node' => array(
'nodeapi' => array(
'presave' => array(
'runs when' => t('When either saving a new post or updating an existing post'),
),
'insert' => array(
'runs when' => t('After saving a new post'),
),
'update' => array(
'runs when' => t('After saving an updated post'),
),
'delete' => array(
'runs when' => t('After deleting a post'),
),
'view' => array(
'runs when' => t('When content is viewed by an authenticated user'),
),
),
),
'taxonomy' => array(
'taxonomy' => array(
'insert' => array(
'runs when' => t('After saving a new term to the database'),
),
'update' => array(
'runs when' => t('After saving an updated term to the database'),
),
'delete' => array(
'runs when' => t('After deleting a term'),
),
),
),
);
}