You are here

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

Overrides ImageAPIOptimizeProcessorConfigurableInterface::configForm

5 calls to ImageAPIOptimizeProcessorBinary::configForm()
ImageAPIOptimizeProcessorAdvDef::configForm in plugins/imageapi_optimize/ImageAPIOptimizeProcessorAdvDef.inc
ImageAPIOptimizeProcessorAdvPng::configForm in plugins/imageapi_optimize/ImageAPIOptimizeProcessorAdvPng.inc
ImageAPIOptimizeProcessorJpegOptim::configForm in plugins/imageapi_optimize/ImageAPIOptimizeProcessorJpegOptim.inc
ImageAPIOptimizeProcessorJpegTran::configForm in plugins/imageapi_optimize/ImageAPIOptimizeProcessorJpegTran.inc
ImageAPIOptimizeProcessorOptiPng::configForm in plugins/imageapi_optimize/ImageAPIOptimizeProcessorOptiPng.inc
5 methods override ImageAPIOptimizeProcessorBinary::configForm()
ImageAPIOptimizeProcessorAdvDef::configForm in plugins/imageapi_optimize/ImageAPIOptimizeProcessorAdvDef.inc
ImageAPIOptimizeProcessorAdvPng::configForm in plugins/imageapi_optimize/ImageAPIOptimizeProcessorAdvPng.inc
ImageAPIOptimizeProcessorJpegOptim::configForm in plugins/imageapi_optimize/ImageAPIOptimizeProcessorJpegOptim.inc
ImageAPIOptimizeProcessorJpegTran::configForm in plugins/imageapi_optimize/ImageAPIOptimizeProcessorJpegTran.inc
ImageAPIOptimizeProcessorOptiPng::configForm in plugins/imageapi_optimize/ImageAPIOptimizeProcessorOptiPng.inc

File

plugins/imageapi_optimize/ImageAPIOptimizeProcessorBinary.inc, line 41

Class

ImageAPIOptimizeProcessorBinary

Code

public function configForm() {
  if (!$this
    ->findExecutablePath()) {
    $form['executable'] = array(
      '#type' => 'item',
      '#title' => t('Executable'),
      '#markup' => t('The @binary binary must be installed, please install or specify the path to the @binary executable directly.', array(
        '@binary' => $this
          ->executableName(),
      )),
    );
  }
  else {
    $form['executable'] = array(
      '#type' => 'item',
      '#title' => t('Executable'),
      '#markup' => t('The @binary executable has been automatically located here: @path. To override, set a different executate path below.', array(
        '@path' => $this
          ->findExecutablePath(),
        '@binary' => $this
          ->executableName(),
      )),
    );
  }
  $form['manual_executable_path'] = array(
    '#type' => 'textfield',
    '#title' => t('Manually set path'),
    '#description' => t('Specify the full path to the @binary executable.', array(
      '@binary' => $this
        ->executableName(),
    )),
    '#default_value' => $this
      ->getManualExecutablePath(),
  );
  return $form;
}