views_plugin_row_search_view.inc
- 3.x modules/search/views_plugin_row_search_view.inc
- 2.x modules/search/views_plugin_row_search_view.inc
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);
- }
- }