function trigger_test_system_cron_conf_action
Implement a configurable Drupal action.
1 string reference to 'trigger_test_system_cron_conf_action'
- TriggerCronTestCase::testActionsCron in modules/
trigger/ trigger.test - Tests assigning multiple actions to the cron trigger.
File
-
modules/
trigger/ tests/ trigger_test.module, line 89
Code
function trigger_test_system_cron_conf_action($object, $context) {
// Indicate successful execution by incrementing a persistent variable.
$value = variable_get('trigger_test_system_cron_conf_action', 0) + 1;
variable_set('trigger_test_system_cron_conf_action', $value);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.