function domain_views_views_plugins in Domain Access 6.2
Implement hook_views_plugins().
File
- domain_views/
domain_views.views.inc, line 320 - 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',
),
),
);
}