You are here

function apachesolr_views_views_plugins in Apache Solr Views 6

Same name and namespace in other branches
  1. 7 apachesolr_views.views.inc \apachesolr_views_views_plugins()

Implementation of hook_views_plugins().

File

./apachesolr_views.views.inc, line 96

Code

function apachesolr_views_views_plugins() {
  return array(
    'module' => 'apachesolr_views',
    'query' => array(
      'apachesolr_views_query' => array(
        'title' => t('Apache Solr Query'),
        'help' => t('Query that allows you to search with Apache Solr.'),
        'handler' => 'apachesolr_views_query',
        'parent' => 'views_query',
      ),
    ),
    'cache' => array(
      'apachesolr-time' => array(
        'path' => drupal_get_path('module', 'apachesolr_views') . '/plugins',
        'title' => t('Time-based Solr Cache'),
        'help' => t('Simple time-based caching of data extension for Solr Views'),
        'handler' => 'apachesolr_views_plugin_cache_time',
        'uses options' => TRUE,
        'base' => array(
          'apachesolr',
        ),
        'parent' => 'time',
      ),
    ),
  );
}