function imageapi_optimize_default_pipeline_revert in Image Optimize (or ImageAPI Optimize) 7.2
Reverts the changes made by users to a default image pipeline.
Parameters
pipeline: An image pipeline array.
Return value
Boolean TRUE if the operation succeeded.
2 calls to imageapi_optimize_default_pipeline_revert()
- imageapi_optimize_features_revert in ./
imageapi_optimize.features.inc - Implements hook_features_revert().
- imageapi_optimize_pipeline_revert_form_submit in ./
imageapi_optimize.admin.inc - Submit handler to convert an overridden pipeline to its default.
File
- ./
imageapi_optimize.module, line 515
Code
function imageapi_optimize_default_pipeline_revert($pipeline) {
imageapi_optimize_pipeline_flush($pipeline);
db_delete('imageapi_optimize_processors')
->condition('isid', $pipeline['isid'])
->execute();
db_delete('imageapi_optimize_pipelines')
->condition('isid', $pipeline['isid'])
->execute();
return TRUE;
}