You are here

function node_tools_content_is_moderated in Module Grants 6.4

Same name and namespace in other branches
  1. 6.3 node_tools/node_tools.module \node_tools_content_is_moderated()

Return whether the supplied content type is subject to moderation.

Parameters

$content_type: i.e. $node->type

Return value

TRUE, if the supplied type has the "New revision in draft, pending moderation" box ticked on the Content management>>Content types>>edit page (see Revisioning).

1 call to node_tools_content_is_moderated()
node_tools_get_nodes in node_tools/node_tools.module
Retrieve a list of nodes or revisions accessible to the logged-in user via the supplied operation.

File

node_tools/node_tools.module, line 77
Generic reusable functions involving node objects.

Code

function node_tools_content_is_moderated($content_type) {
  return !empty($content_type) && in_array('revision_moderation', variable_get('node_options_' . $content_type, array()));
}