You are here

function revisioning_moderated_content_types in Revisioning 6.3

Same name and namespace in other branches
  1. 8 revisioning_api.inc \revisioning_moderated_content_types()
  2. 7 revisioning_api.inc \revisioning_moderated_content_types()

Return an array of names of content types that are subject to moderation.

Return value

array of strings, may be empty

1 call to revisioning_moderated_content_types()
revisioning_handler_filter_node_revision_moderation::query in views/revisioning_handler_filter_node_revision_moderation.inc
Add a where clause to the query.

File

./revisioning_api.inc, line 566
API functions of Revisioning module

Code

function revisioning_moderated_content_types() {
  $moderated_content_types = array();
  foreach (node_get_types() as $type) {
    $content_type = check_plain($type->type);
    if (node_tools_content_is_moderated($content_type)) {
      $moderated_content_types[] = $content_type;
    }
  }
  return $moderated_content_types;
}