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/handlers/views_handler_field_links.inc
13 13
class views_handler_field_links extends views_handler_field {
14 14

  
15 15
  /**
16
   * Overrides views_handler_field::option_definition().
16
   * {@inheritdoc}
17 17
   */
18
  function option_definition() {
18
  public function option_definition() {
19 19
    $options = parent::option_definition();
20 20

  
21 21
    $options['fields'] = array('default' => array());
......
26 26
  }
27 27

  
28 28
  /**
29
   * Overrides views_handler_field::options_form().
29
   * {@inheritdoc}
30 30
   */
31
  function options_form(&$form, &$form_state) {
31
  public function options_form(&$form, &$form_state) {
32 32
    parent::options_form($form, $form_state);
33 33

  
34 34
    $all_fields = $this->view->display_handler->get_field_labels();
......
59 59
  }
60 60

  
61 61
  /**
62
   * Overrides views_handler_field::options_form().
62
   * {@inheritdoc}
63 63
   */
64
  function options_submit(&$form, &$form_state) {
64
  public function options_submit(&$form, &$form_state) {
65 65
    // Remove unselected options.
66 66
    $form_state['values']['options']['fields'] = array_filter($form_state['values']['options']['fields']);
67 67
  }
......
72 72
   * @return array
73 73
   *   The links which are used by the render function.
74 74
   */
75
  function get_links() {
75
  public function get_links() {
76 76
    $links = array();
77 77
    foreach ($this->options['fields'] as $field) {
78 78
      if (empty($this->view->field[$field]->last_render_text)) {
......
121 121
        }
122 122

  
123 123
        // Omit tweaks of query, fragment, and link_class.
124

  
125 124
        $alt = strtr($alter['alt'], $tokens);
126 125
        if ($alt && $alt != $title) {
127 126
          // Set the title attribute only if it improves accessibility.
......
148 147
  }
149 148

  
150 149
  /**
151
   * Overrides views_handler_field::query().
150
   * {@inheritdoc}
152 151
   */
153
  function query() { }
152
  public function query() {
153
  }
154 154

  
155 155
}

Formats disponibles : Unified diff