blob: c44360d52cd6f17ad3fa2d9334c19b838c6c7ffe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<?php
// $Id$
/**
* @file
* Mock module to aid in testing trigger.module.
*/
/**
* Implementation of hook_action_info().
*/
function trigger_test_action_info() {
// Register an action that can be assigned to the trigger "cron run".
return array(
'trigger_test_system_cron_action' => array(
'type' => 'system',
'description' => t('Cron test action'),
'configurable' => FALSE,
'hooks' => array(
'cron' => array('run'),
),
),
);
}
/**
* Action fired during the "cron run" trigger test.
*/
function trigger_test_system_cron_action() {
// Indicate successful execution by setting a persistent variable.
variable_set('trigger_test_system_cron_action', TRUE);
}
|