views_plugin_row_search_view.inc

  1. 3.x modules/search/views_plugin_row_search_view.inc
  2. 2.x modules/search/views_plugin_row_search_view.inc

Contains the search row style plugin.

File

modules/search/views_plugin_row_search_view.inc
View source
  1. <?php
  2. /**
  3. * @file
  4. * Contains the search row style plugin.
  5. */
  6. /**
  7. * Plugin which performs a node_view on the resulting object.
  8. */
  9. class views_plugin_row_search_view extends views_plugin_row {
  10. function option_definition() {
  11. $options = parent::option_definition();
  12. $options['score'] = array('default' => TRUE);
  13. return $options;
  14. }
  15. function options_form(&$form, &$form_state) {
  16. $form['score'] = array(
  17. '#type' => 'checkbox',
  18. '#title' => t('Display score'),
  19. '#default_value' => $this->options['score'],
  20. );
  21. }
  22. /**
  23. * Override the behavior of the render() function.
  24. */
  25. function render($row) {
  26. return theme($this->theme_functions(), $this->view, $this->options, $row);
  27. }
  28. }