Project

General

Profile

Revision b0dc3a2e

Added by Julien Enselme over 7 years ago

Update to Drupal 7.52

View differences:

drupal7/modules/overlay/overlay.module
78 78
  );
79 79
}
80 80

  
81
/**
82
 * Implements hook_form_alter().
83
 */
84
function overlay_form_alter(&$form, &$form_state) {
85
  // Add a hidden element to prevent dropping out of the overlay when a form is
86
  // submitted inside the overlay using a GET method.
87
  if (isset($form['#method']) && $form['#method'] == 'get' && isset($_REQUEST['render']) && $_REQUEST['render'] == 'overlay' && !isset($form['render'])) {
88
    $form['render'] = array(
89
      '#type' => 'hidden',
90
      '#value' => 'overlay',
91
    );
92
  }
93
}
94

  
81 95
/**
82 96
 * Implements hook_form_FORM_ID_alter().
83 97
 */

Also available in: Unified diff