You are here

function imageapi_optimize_binaries_advpng_form in Image Optimize (or ImageAPI Optimize) 7

AdvanceCOMP PNG Compression Utility ImageAPI Optimize form callback.

File

binaries/advpng.inc, line 27
AdvanceCOMP PNG Compression Utility integration.

Code

function imageapi_optimize_binaries_advpng_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;
}