function minifyjs_settings_form in Minify JS 7
Creates a system settings form to handle file exclusions.
1 string reference to 'minifyjs_settings_form'
- minifyjs_menu in ./
minifyjs.module - Implements hook_menu()
File
- ./
minifyjs.admin.inc, line 531 - Hook and helper functions for the Minify JS module.
Code
function minifyjs_settings_form($form, &$form_state) {
$form = array();
$form['minifyjs_disable_admin'] = array(
'#title' => t('Disable on admin pages.'),
'#description' => t('Disable this module functionality on admin pages.'),
'#type' => 'checkbox',
'#default_value' => variable_get('minifyjs_disable_admin'),
);
$form['minifyjs_exclusion_list'] = array(
'#title' => t('Exclusion List'),
'#description' => t('Some files cannot be minified, for whatever reason. This list allows the administrator to exclude these files from the %title page and stops the site from using the minified version of the file (if applicable). Allows wildcards (*) and other Drupal path conventions.', array(
'%title' => 'Manage Javascript Files',
)),
'#type' => 'textarea',
'#default_value' => variable_get('minifyjs_exclusion_list'),
);
return system_settings_form($form);
}