function imageapi_optimize_pipeline_add_form_submit in Image Optimize (or ImageAPI Optimize) 7.2
Submit handler for adding a new image pipeline.
File
- ./
imageapi_optimize.admin.inc, line 284
Code
function imageapi_optimize_pipeline_add_form_submit($form, &$form_state) {
$pipeline = array(
'name' => $form_state['values']['name'],
'label' => $form_state['values']['label'],
);
$pipeline = imageapi_optimize_pipeline_save($pipeline);
drupal_set_message(t('Pipeline %name was created.', array(
'%name' => $pipeline['label'],
)));
$form_state['redirect'] = 'admin/config/media/imageapi-optimize/edit/' . $pipeline['name'];
}