You are here

function workbench_moderation_entity_revision_operation_access in Revision scheduler 7

Implements hook_entity_revision_operation_access().

File

./revision_scheduler.module, line 930

Code

function workbench_moderation_entity_revision_operation_access($operation, $entity_type, $entity, $account) {
  if (strpos($operation['operation'], 'workbench_moderation_') !== FALSE && !empty($entity) && $entity_type == 'node') {

    //$state = substr($operation['operation'], 21);
    if (!workbench_moderation_node_type_moderated($entity->type)) {
      return FALSE;
    }
  }
}