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
Mock module to aid in testing trigger.module.

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);
}