You are here

function workbench_moderation_node_moderated in Workbench Moderation 7

Same name and namespace in other branches
  1. 7.3 workbench_moderation.module \workbench_moderation_node_moderated()

Determines if this content is set to be moderated.

Parameters

obj $node: Node object

Return value

boolean

9 calls to workbench_moderation_node_moderated()
workbench_moderation_edit_tab_title in ./workbench_moderation.module
Change the name of the node edit tab, conditionally.
workbench_moderation_form_node_form_alter in ./workbench_moderation.module
Implements hook_form_BASE_FORM_ID_alter().
workbench_moderation_get_moderation_links in ./workbench_moderation.module
Generates a list of links to available moderation actions.
workbench_moderation_menu_local_tasks_alter in ./workbench_moderation.module
Implements hook_menu_local_tasks_alter().
workbench_moderation_node_revisions_redirect in ./workbench_moderation.module
Redirects 'node/%node/revisions' to node/%node/moderation

... See full list

File

./workbench_moderation.module, line 1033
Content moderation for Workbench.

Code

function workbench_moderation_node_moderated($node) {

  // Is this content moderated? (individual node check, for extension purposes).
  $access = workbench_moderation_node_type_moderated($node->type);
  drupal_alter('workbench_moderation_node_moderated', $access, $node);
  return $access;
}