You are here

function workbench_moderation_moderate_node_types in Workbench Moderation 7.3

Same name and namespace in other branches
  1. 7 workbench_moderation.module \workbench_moderation_moderate_node_types()

Lists content types that are moderated

3 calls to workbench_moderation_moderate_node_types()
workbench_moderation_admin_check_role_form in ./workbench_moderation.admin.inc
Check proper permissions for moderation roles.
workbench_moderation_handler_filter_moderated_type::query in includes/workbench_moderation_handler_filter_moderated_type.inc
Add this filter to the query.
workbench_moderation_permission in ./workbench_moderation.module
Implements hook_permission().

File

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

Code

function workbench_moderation_moderate_node_types() {
  $types = node_type_get_types();
  $result = array();
  foreach ($types as $type) {

    // Is this content even in moderatation?
    if (workbench_moderation_node_type_moderated($type->type)) {
      $result[] = $type->type;
    }
  }
  return $result;
}