00001 <?php 00010 class views_plugin_row_search_view extends views_plugin_row { 00011 function option_definition() { 00012 $options = parent::option_definition(); 00013 00014 $options['score'] = array('default' => TRUE); 00015 00016 return $options; 00017 } 00018 00019 function options_form(&$form, &$form_state) { 00020 $form['score'] = array( 00021 '#type' => 'checkbox', 00022 '#title' => t('Display score'), 00023 '#default_value' => $this->options['score'], 00024 ); 00025 } 00026 00030 function render($row) { 00031 return theme($this->theme_functions(), 00032 array( 00033 'view' => $this->view, 00034 'options' => $this->options, 00035 'row' => $row 00036 )); 00037 } 00038 }