You are here

global_filter.views.inc in Views Global Filter 6

Same filename and directory in other branches
  1. 8 views/global_filter.views.inc
  2. 7 views/global_filter.views.inc

Defines the Global Filter default argument plugin.

File

views/global_filter.views.inc
View source
<?php

/**
 * @file
 * Defines the Global Filter default argument plugin.
 */

/**
 * Implements hook_views_plugins().
 */
function global_filter_views_plugins() {
  $path = drupal_get_path('module', 'global_filter') . '/views';
  $plugins = array(
    'argument default' => array(
      'global_filter_view' => array(
        'title' => t('Global filter (view)'),
        'handler' => 'global_filter_plugin_argument_default_global_filter_view',
        'path' => $path,
      ),
      'global_filter_field' => array(
        'title' => t('Global filter (field)'),
        'handler' => 'global_filter_plugin_argument_default_global_filter_field',
        'path' => $path,
      ),
    ),
  );
  return $plugins;
}

Functions