Projet

Général

Profil

Révision d719f12f

Ajouté par Assos Assos il y a plus de 8 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/views/plugins/views_plugin_style.inc
182 182
  function options_form(&$form, &$form_state) {
183 183
    parent::options_form($form, $form_state);
184 184
    // Only fields-based views can handle grouping.  Style plugins can also exclude
185
    // themselves from being groupable by setting their "use grouping" definiton
185
    // themselves from being groupable by setting their "use grouping" definition
186 186
    // key to FALSE.
187 187
    // @TODO: Document "uses grouping" in docs.php when docs.php is written.
188 188
    if ($this->uses_fields() && $this->definition['uses grouping']) {
......
191 191
      $options += $field_labels;
192 192
      // If there are no fields, we can't group on them.
193 193
      if (count($options) > 1) {
194
        // This is for backward compability, when there was just a single select form.
194
        // This is for backward compatibility, when there was just a single select form.
195 195
        if (is_string($this->options['grouping'])) {
196 196
          $grouping = $this->options['grouping'];
197 197
          $this->options['grouping'] = array();
......
419 419
   *   @endcode
420 420
   */
421 421
  function render_grouping($records, $groupings = array(), $group_rendered = NULL) {
422
    // This is for backward compability, when $groupings was a string containing
422
    // This is for backward compatibility, when $groupings was a string containing
423 423
    // the ID of a single field.
424 424
    if (is_string($groupings)) {
425 425
      $rendered = $group_rendered === NULL ? TRUE : $group_rendered;
......
486 486
      );
487 487
    }
488 488

  
489
    // If this parameter isn't explicitely set modify the output to be fully
489
    // If this parameter isn't explicitly set modify the output to be fully
490 490
    // backward compatible to code before Views 7.x-3.0-rc2.
491 491
    // @TODO Remove this as soon as possible e.g. October 2020
492 492
    if ($group_rendered === NULL) {

Formats disponibles : Unified diff