function minifyhtml_settings_form in Minify Source HTML 7
Settings form callback.
Parameters
array $form: Form array.
array $form_state: Form state array.
Return value
array Renderable form array.
1 string reference to 'minifyhtml_settings_form'
- minifyhtml_menu in ./
minifyhtml.module - Implements hook_menu().
File
- ./
minifyhtml.admin.inc, line 19 - Admin functions for the Minify HTML module.
Code
function minifyhtml_settings_form(array $form, array &$form_state) {
$form = array();
$form['minifyhtml_strip_comments'] = array(
'#title' => t('Strip comments from the source HTML'),
'#description' => t('If checked, strip HTML comments and multi-line comments in @script and @style tags.', array(
'@script' => '<script>',
'@style' => '<style>',
)),
'#type' => 'checkbox',
'#default_value' => variable_get('minifyhtml_strip_comments', TRUE),
);
return system_settings_form($form);
}