Commit b864ee73 authored by bgm's avatar bgm

Issue #2242801: Set forms as #immutable per Form API introduced in Drupal 6.31...

Issue #2242801: Set forms as #immutable per Form API introduced in Drupal 6.31 (based on patch by znerol, David_Rothstein).
parent 49e60efd
......@@ -260,6 +260,17 @@ function boost_init() {
}
}
/**
* Implements hook_form_alter().
*/
function boost_form_alter(&$form, &$form_state, $form_id) {
global $_boost;
if (! empty($_boost['cache_this'])) {
$form['#immutable'] = TRUE;
}
}
/**
* Implements hook_drupal_goto_alter().
*/
......
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