You are here

function boost_form_alter in Boost 7

Same name and namespace in other branches
  1. 5 boost.module \boost_form_alter()
  2. 6 boost.module \boost_form_alter()

Implements hook_form_alter().

File

./boost.module, line 281
Caches generated output as a static file to be served directly from the webserver.

Code

function boost_form_alter(&$form, &$form_state, $form_id) {
  global $_boost;
  if (!empty($_boost['cache_this'])) {
    $form['#immutable'] = TRUE;
  }
}