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/plugins/views_plugin_style_jump_menu.inc
2 2

  
3 3
/**
4 4
 * @file
5
 * Contains the table style plugin.
5
 * Definition of views_plugin_style_jump_menu.
6 6
 */
7 7

  
8 8
/**
......
11 11
 * @ingroup views_style_plugins
12 12
 */
13 13
class views_plugin_style_jump_menu extends views_plugin_style {
14
  function option_definition() {
14

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

  
17 21
    $options['hide'] = array('default' => FALSE, 'bool' => TRUE);
......
28 32
  /**
29 33
   * Render the given style.
30 34
   */
31
  function options_form(&$form, &$form_state) {
35
  public function options_form(&$form, &$form_state) {
32 36
    parent::options_form($form, $form_state);
33 37
    $handlers = $this->display->handler->get_handlers('field');
34 38
    if (empty($handlers)) {
......
103 107
   *
104 108
   * This is overridden so that we can render our grouping specially.
105 109
   */
106
  function render() {
110
  public function render() {
107 111
    $sets = $this->render_grouping($this->view->result, $this->options['grouping']);
108 112

  
109 113
    // Turn this all into an $options array for the jump menu.
......
122 126
          $path = drupal_substr($path, drupal_strlen($base_path));
123 127
        }
124 128

  
125
        // use drupal_parse_url() to preserve query and fragment in case the user
126
        // wants to do fun tricks.
129
        // Use drupal_parse_url() to preserve query and fragment in case the
130
        // user wants to do fun tricks.
127 131
        $url_options = drupal_parse_url($path);
128 132

  
129 133
        $path = url($url_options['path'], $url_options);
......
144 148
    $default_value = '';
145 149
    if ($this->options['default_value']) {
146 150
      $lookup_options = array();
147
      // We need to check if the path is absolute
148
      // or else language is not taken in account.
151
      // We need to check if the path is absolute or else language is not taken
152
      // in account.
149 153
      if (!empty($this->view->display[$this->view->current_display]->display_options['fields'][$this->options['path']]['absolute'])) {
150 154
        $lookup_options['absolute'] = TRUE;
151 155
      }
......
169 173
    return $form;
170 174
  }
171 175

  
172
  function render_set($title, $records) {
176
  /**
177
   *
178
   */
179
  public function render_set($title, $records) {
173 180
    $options = array();
174 181
    $fields = $this->rendered_fields;
175 182
  }
183

  
176 184
}

Formats disponibles : Unified diff