-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathextjs.admin.inc
32 lines (30 loc) · 987 Bytes
/
extjs.admin.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
/**
* @file
*
* The admin settings
*/
/**
* Form definition for the admin page.
*/
function extjs_admin_settings_form(array &$form_state) {
// Clear the javascript cache when the setting is updated.
$form['#submit'][] = 'drupal_clear_js_cache';
$form['extjs_neptune_theme'] = array(
'#type' => 'checkbox',
'#title' => t('Use the Neptune Theme'),
'#default_value' => variable_get('extjs_neptune_theme', FALSE),
);
$form['extjs_compression_type'] = array(
'#type' => 'radios',
'#title' => t('Choose ExtJS compression level'),
'#options' => array(
EXTJS_MIN_COMPRESSION => t('Production (Minified)'),
EXTJS_DEV_COMPRESSION => t('Development (Raw)'),
EXTJS_DEBUG_COMPRESSION => t('Development (Debug)'),
EXTJS_DEBUG_COMMENTS_COMPRESSION => t('Development (Debug with Comments)'),
),
'#default_value' => variable_get('extjs_compression_type', EXTJS_MIN_COMPRESSION),
);
return system_settings_form($form);
}