Projet

Général

Profil

Révision 64156087

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

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/panels/includes/display-layout.inc
2 2

  
3 3
/**
4 4
 * @file
5
 *
6 5
 * Handle the forms for changing a display's layout.
7 6
 */
8 7

  
......
33 32
  if (empty($_POST) || empty($_POST['form_id']) || $_POST['form_id'] != 'panels_change_layout') {
34 33
    $output = drupal_build_form('panels_choose_layout', $form_state);
35 34
    if (!empty($form_state['executed'])) {
36
      // upon submission go to next form.
35
      // Upon submission go to next form.
37 36
      $change_form_state['layout'] = $_SESSION['layout'][$display->did] = $form_state['layout'];
38 37
      $change_form = TRUE;
39 38
    }
......
147 146
  $js['CTools']['dependent'] = $dependencies;
148 147
  drupal_add_js($js, 'setting');
149 148

  
150

  
151 149
  if (empty($form_state['no buttons'])) {
152 150
    $form['submit'] = array(
153 151
      '#type' => 'submit',
......
293 291
    foreach ($form_state['values']['panel']['pane'] as $region_id => $panes) {
294 292
      if ($panes) {
295 293
        $pids = explode(',', $panes);
296
        // need to filter the array, b/c passing it in a hidden field can generate trash
294
        // Need to filter the array, b/c passing it in a hidden field can generate trash.
297 295
        foreach (array_filter($pids) as $pid) {
298 296
          $switch[$pid] = $region_id;
299 297
        }

Formats disponibles : Unified diff