views_plugin_row_search_view.inc in Views (for Drupal 7) 6.3
Same filename and directory in other branches
Contains the search row style plugin.
File
modules/search/views_plugin_row_search_view.incView 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
Name | Description |
---|---|
views_plugin_row_search_view | Plugin which performs a node_view on the resulting object. |