function imageapi_optimize_binaries_advdef_form in Image Optimize (or ImageAPI Optimize) 7
AdvanceCOMP Deflate Compression Utility ImageAPI Optimize form callback.
File
- binaries/
advdef.inc, line 27 - AdvanceCOMP Deflate Compression Utility integration.
Code
function imageapi_optimize_binaries_advdef_form($settings) {
$form = array();
$form['recompress'] = array(
'#title' => t('Recompress'),
'#type' => 'checkbox',
'#default_value' => $settings['recompress'],
);
$form['mode'] = array(
'#title' => t('Compression mode'),
'#type' => 'select',
'#options' => array(
0 => t('Disabled'),
1 => t('Fast'),
2 => t('Normal'),
3 => t('Extra'),
4 => t('Insane'),
),
'#default_value' => $settings['mode'],
);
return $form;
}