Commit 78610362 authored by bgm's avatar bgm

Set forms as #immutable per Form API introduced in Drupal 6.31 (patch by znerol, David_Rothstein).

parent 83e0908b
/**
* Set the immutable flag on each ahah form element setting.
*/
Drupal.behaviors.fix_ahah_immutable_flag = function(context) {
for (var base in Drupal.settings.ahah) {
Drupal.settings.ahah[base].immutable = true;
}
};
......@@ -883,6 +883,11 @@ function boost_menu() {
* is rendered.
*/
function boost_form_alter(&$form, $form_state, $form_id) {
if (boost_is_cacheable($GLOBALS['_boost_path'])) {
$form['#immutable'] = TRUE;
drupal_add_js(drupal_get_path('module', 'boost') . '/boost.js');
}
switch ($form_id) {
// Alter Drupal's system performance settings form by hiding the default
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment