You are here

function domain_views_views_plugins in Domain Views 7

Implements hook_views_plugins().

File

./domain_views.views.inc, line 355
Provides the views data and handlers for domain.module.

Code

function domain_views_views_plugins() {
  $path = drupal_get_path('module', 'domain_views') . '/includes';
  return array(
    'access' => array(
      'domain' => array(
        'title' => t('Domain'),
        'help' => t('Will be available only on selected domains.'),
        'handler' => 'domain_views_plugin_access',
        'uses options' => TRUE,
        'path' => $path,
      ),
    ),
    'argument default' => array(
      'current_domain' => array(
        'title' => t('Current domain'),
        'handler' => 'domain_views_plugin_argument_default_current',
        'path' => $path,
        'parent' => 'fixed',
      ),
    ),
    'cache' => array(
      'time_per_domain' => array(
        'title' => t('Time-based Per Domain'),
        'help' => t('Time-based caching of views on a per domain basis. This is necessary if you want to cache a view that filters on "current domain".'),
        'handler' => 'domain_views_plugin_cache_time',
        'uses options' => TRUE,
        'path' => $path,
        'parent' => 'time',
      ),
    ),
  );
}