You are here

public function ImageAPIOptimizeProcessorAdvPng::configForm in Image Optimize (or ImageAPI Optimize) 7.2

Overrides ImageAPIOptimizeProcessorBinary::configForm

File

plugins/imageapi_optimize/ImageAPIOptimizeProcessorAdvPng.inc, line 39

Class

ImageAPIOptimizeProcessorAdvPng

Code

public function configForm() {
  $form = parent::configForm();
  $form['recompress'] = array(
    '#title' => t('Recompress'),
    '#type' => 'checkbox',
    '#default_value' => $this
      ->isRecompress(),
  );
  $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' => $this
      ->getMode(),
  );
  return $form;
}