function jquery_update_settings in jQuery Update 6
Same name and namespace in other branches
- 6.2 jquery_update.module \jquery_update_settings()
Admin settings form.
1 string reference to 'jquery_update_settings'
- jquery_update_menu in ./
jquery_update.module - Implementation of hook_menu().
File
- ./
jquery_update.module, line 136 - Updates Drupal to use the latest version of jQuery.
Code
function jquery_update_settings() {
// Clear the javascript cache when the setting is updated and check version of jquery file.
$form['#submit'][] = 'drupal_clear_js_cache';
$form['#submit'][] = 'jquery_update_flush_caches';
$form['jquery_update_compression_type'] = array(
'#type' => 'radios',
'#title' => t('jQuery compression type'),
'#options' => array(
'pack' => t('Packed'),
'min' => t('Minified'),
'none' => t('None'),
),
'#default_value' => variable_get('jquery_update_compression_type', 'pack'),
'#description' => t('<cite>From <a href="http://docs.jquery.com/Downloading_jQuery">docs.jquery.com</a>:</cite> <q>The minified version, while having a larger file size than the packed version, is generally the best version to use on production deployments. The packed version requires non-trivial client-side processing time to uncompress the code.</q> "None" is provided for debugging purposes, but generally one of the compression options is recommended.'),
);
return system_settings_form($form);
}