You are here

function minifyhtml_form_system_performance_settings_alter in Minify Source HTML 7

Implements hook_FORM_ID_alter().

File

./minifyhtml.module, line 88
Hook and helper functions for the Minify HTML module.

Code

function minifyhtml_form_system_performance_settings_alter(&$form, &$form_state, $form_id) {
  if (user_access('administer minifyhtml')) {
    $form['bandwidth_optimization']['minifyhtml_minify'] = array(
      '#type' => 'checkbox',
      '#title' => t('Minified Source HTML.'),
      '#description' => t('Toggle minified HTML on or off.'),
      '#default_value' => variable_get('minifyhtml_minify', 0),
    );
  }
}