You are here

function workbench_access_rules_condition_content_is_using_workbench_moderation in Workbench Moderation 7.3

Same name and namespace in other branches
  1. 7 workbench_moderation.rules.inc \workbench_access_rules_condition_content_is_using_workbench_moderation()

Condition: Check if the content is using workbench moderation.

Parameters

$node: A node object

Return value

TRUE/FALSE depending on if the content is using workbench moderation.

1 string reference to 'workbench_access_rules_condition_content_is_using_workbench_moderation'
workbench_moderation_rules_condition_info in ./workbench_moderation.rules.inc
Implements hook_rules_condition_info().

File

./workbench_moderation.rules.inc, line 212

Code

function workbench_access_rules_condition_content_is_using_workbench_moderation($node) {
  if (!is_object($node)) {
    return FALSE;
  }
  return workbench_moderation_node_type_moderated($node->type);
}