You are here

function revisioning_views_handlers in Revisioning 6.4

Same name and namespace in other branches
  1. 6.3 views/revisioning.views.inc \revisioning_views_handlers()

Implementation of hook_views_handlers().

Register all of the handlers (fields and filters) used in Revisioning views.

File

views/revisioning.views.inc, line 81
Declare new node and node_revisions fields and filters.

Code

function revisioning_views_handlers() {
  return array(
    'info' => array(
      'path' => drupal_get_path('module', 'revisioning') . '/views',
    ),
    'handlers' => array(
      'revisioning_handler_field_node_state' => array(
        'parent' => 'views_handler_field',
      ),
      'revisioning_handler_field_revision_state' => array(
        'parent' => 'views_handler_field',
      ),
      'revisioning_handler_field_node_number_of_revisions' => array(
        'parent' => 'views_handler_field',
      ),
      'revisioning_handler_field_node_revision_moderation' => array(
        'parent' => 'views_handler_field',
      ),
      'revisioning_handler_filter_node_state' => array(
        'parent' => 'views_handler_filter_in_operator',
      ),
      'revisioning_handler_filter_node_number_of_revisions' => array(
        'parent' => 'views_handler_filter_numeric',
      ),
      'revisioning_handler_filter_node_revision_moderation' => array(
        'parent' => 'views_handler_filter_in_operator',
      ),
      'revisioning_handler_filter_revision_state' => array(
        'parent' => 'views_handler_filter_in_operator',
      ),
    ),
  );
}