public function ImageAPIOptimizeProcessorReSmushIt::configForm in Image Optimize (or ImageAPI Optimize) 7.2
Overrides ImageAPIOptimizeProcessorConfigurableInterface::configForm
File
- plugins/
imageapi_optimize/ ImageAPIOptimizeProcessorReSmushIt.inc, line 23
Class
Code
public function configForm() {
$form['connection_timeout'] = array(
'#type' => 'textfield',
'#default_value' => $this
->getConnectionTimeout(),
'#title' => t('Connection timeout'),
'#description' => t('Number of seconds to wait before giving up waiting for resmush.it to return an optimized image.'),
'#field_suffix' => 'seconds',
'#required' => TRUE,
'#size' => 4,
'#maxlength' => 3,
'#element_validate' => array(
'imageapi_optimize_processor_integer_validate',
),
'#allow_negative' => FALSE,
);
return $form;
}