function less_settings in Less CSS Preprocessor 6.2
Same name and namespace in other branches
- 7.2 less.admin.inc \less_settings()
@file Contains the administration pages for LESS.
1 string reference to 'less_settings'
- less_menu in ./
less.module - Implements hook_menu().
File
- ./
less.admin.inc, line 9 - Contains the administration pages for LESS.
Code
function less_settings(&$form_state) {
$form = array();
$form['less_flush'] = array(
'#type' => 'fieldset',
'#collapsible' => FALSE,
'#value' => 'Click this button regenerate all LESS files once.',
);
$form['less_flush']['flush'] = array(
'#type' => 'submit',
'#submit' => array(
'_flush_less',
),
'#value' => 'Flush LESS files',
);
$form['less_devel'] = array(
'#type' => 'checkbox',
'#title' => t('LESS developer mode'),
'#description' => t('Enable the developer mode to ensure LESS files are regenerated every page load, regardless of any change done to the LESS file (which may happen when using the @import notation, and changing only the imported file). Note that this setting does not override "Optimize CSS files" if set via <a href="@performance-url">Performance</a>.', array(
'@performance-url' => url('admin/settings/performance'),
)),
'#default_value' => variable_get('less_devel', FALSE),
);
return system_settings_form($form);
}