views_plugin_row_search_view.inc
Same filename in other branches
Contains the search row style plugin.
File
-
modules/
search/ views_plugin_row_search_view.inc
View source
<?php
/**
* @file
* Contains the search row style plugin.
*/
/**
* Plugin which performs a node_view on the resulting object.
*/
class views_plugin_row_search_view extends views_plugin_row {
function option_definition() {
$options = parent::option_definition();
$options['score'] = array(
'default' => TRUE,
);
return $options;
}
function options_form(&$form, &$form_state) {
$form['score'] = array(
'#type' => 'checkbox',
'#title' => t('Display score'),
'#default_value' => $this->options['score'],
);
}
/**
* Override the behavior of the render() function.
*/
function render($row) {
return theme($this->theme_functions(), $this->view, $this->options, $row);
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
views_plugin_row_search_view | Plugin which performs a node_view on the resulting object. |