views_plugin_style_autocomplete.inc in Search Autocomplete 7.3
Implements views_plugin_style for search_autocomplete
File
views/plugins/views_plugin_style_autocomplete.incView source
<?php
/**
* @file
* Implements views_plugin_style for search_autocomplete
*/
/**
* Implements views_plugin_style
*/
class views_plugin_style_autocomplete extends views_plugin_style {
/**
* Implements views_plugin_style::option_definition
*/
function option_definition() {
$options = parent::option_definition();
return $options;
}
/**
* Provide a form for setting options.
*/
function options_form(&$form, &$form_state) {
}
/**
* Implements view_style_plugin::theme_functions(). Returns an array of theme functions to use
* for the current style plugin
* @return array
*/
function theme_functions() {
$options = $this->options;
$hook = 'views_search_autocomplete_style';
return views_theme_functions($hook, $this->view, $this->display);
}
/**
* Implements views_style_plugin::additional_theme_functions(). Returns empty array.
* @return array
*/
function additional_theme_functions() {
return array();
}
/**
* Implements view_style_plugin::render()
*/
function render() {
$view = $this->view;
$options = $this->options;
$field = $view->field;
$rows = array();
foreach ($view->result as $count => $row) {
$view->row_index = $count;
$rows[] = _search_autocomplete_render_fields($view, $row);
}
unset($view->row_index);
return theme($this
->theme_functions(), array(
'view' => $view,
'options' => $options,
'rows' => $rows,
));
}
}
Classes
Name | Description |
---|---|
views_plugin_style_autocomplete | Implements views_plugin_style |