You are here

function views_search_snippet_views_data in Views search snippet 8

Same name and namespace in other branches
  1. 2.x views_search_snippet.views.inc \views_search_snippet_views_data()
  2. 1.x views_search_snippet.views.inc \views_search_snippet_views_data()

File

./views_search_snippet.views.inc, line 5

Code

function views_search_snippet_views_data() {
  $data['node_search_index']['snippet'] = array(
    'title' => t('Snippet'),
    'help' => t('A snippet from the content with search keywords highlighted. This will not be used if the search filter is not also present.'),
    'field' => array(
      'id' => 'views_search_snippet',
      'no group by' => TRUE,
    ),
  );
  $data['node_search_index']['keys'] = array(
    'title' => t('Search Keywords'),
    'help' => t('The keywords to search for.'),
  );
  return $data;
}