You are here

function revision_scheduler_test_operation in Revision scheduler 7

Revision scheduler callback: record the results to a static variable.

1 string reference to 'revision_scheduler_test_operation'
revision_scheduler_test_entity_revision_operation_info in tests/revision_scheduler_test/revision_scheduler_test.module
Implements hook_entity_revision_operation_info() on behalf of node.module.

File

tests/revision_scheduler_test/revision_scheduler_test.module, line 44

Code

function revision_scheduler_test_operation($entity, $operation) {
  $results =& drupal_static('revision_scheduler_test_process', array());
  $results[] = array(
    'entity' => $entity,
    'operation' => $operation,
    'user' => $GLOBALS['user'],
  );
}