Projet

Général

Profil

Révision 5d12d676

Ajouté par Assos Assos il y a environ 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/views/modules/search/views_plugin_row_search_view.inc
9 9
 * Plugin which performs a node_view on the resulting object.
10 10
 */
11 11
class views_plugin_row_search_view extends views_plugin_row {
12
  function option_definition() {
12

  
13
  /**
14
   * {@inheritdoc}
15
   */
16
  public function option_definition() {
13 17
    $options = parent::option_definition();
14 18

  
15 19
    $options['score'] = array('default' => TRUE, 'bool' => TRUE);
......
17 21
    return $options;
18 22
  }
19 23

  
20
  function options_form(&$form, &$form_state) {
24
  /**
25
   * {@inheritdoc}
26
   */
27
  public function options_form(&$form, &$form_state) {
21 28
    $form['score'] = array(
22 29
      '#type' => 'checkbox',
23 30
      '#title' => t('Display score'),
......
28 35
  /**
29 36
   * Override the behavior of the render() function.
30 37
   */
31
  function render($row) {
38
  public function render($row) {
32 39
    return theme($this->theme_functions(),
33 40
      array(
34 41
        'view' => $this->view,
35 42
        'options' => $this->options,
36
        'row' => $row
43
        'row' => $row,
37 44
      ));
38 45
  }
46

  
39 47
}

Formats disponibles : Unified diff