You are here

function search_autocomplete_views_plugins in Search Autocomplete 7.3

Same name and namespace in other branches
  1. 7.4 views/search_autocomplete.views.inc \search_autocomplete_views_plugins()

Implements hook_views_plugins().

File

views/search_autocomplete.views.inc, line 13
Views style plugin to render nodes in the JSON data format.

Code

function search_autocomplete_views_plugins() {
  $path = drupal_get_path('module', 'search_autocomplete') . '/views';
  return array(
    'module' => 'search_autocomplete',
    'style' => array(
      'search_autocomplete' => array(
        'title' => t('Autocompletion JSON'),
        'path' => $path . '/plugins',
        'help' => t('Displays nodes in the JSON data format.'),
        'handler' => 'views_plugin_style_autocomplete',
        'theme' => 'views_search_autocomplete_style',
        'theme file' => 'views_search_autocomplete_style.theme.inc',
        'theme path' => $path . '/theme',
        'uses row plugin' => FALSE,
        'uses fields' => TRUE,
        'uses options' => TRUE,
        'type' => 'normal',
        'help_topic' => 'style-autocomplete',
        'even empty' => TRUE,
      ),
    ),
  );
}