You are here

function imageapi_optimize_pipeline_processors in Image Optimize (or ImageAPI Optimize) 7.2

Loads all the processors for an image pipeline.

Parameters

array $pipeline: An image pipeline array containing:

  • isid: The unique image pipeline ID that contains this image processor.

Return value

array An array of image processors associated with specified image pipeline in the format array('isid' => array()), or an empty array if the specified pipeline has no processors.

See also

image_processors()

1 call to imageapi_optimize_pipeline_processors()
imageapi_optimize_pipelines in ./imageapi_optimize.module
Gets an array of all pipelines and their settings.

File

./imageapi_optimize.module, line 413

Code

function imageapi_optimize_pipeline_processors($pipeline) {
  $processors = imageapi_optimize_processors();
  $pipeline_processors = array();
  foreach ($processors as $processor) {
    if ($pipeline['isid'] == $processor['isid']) {
      $pipeline_processors[$processor['ieid']] = $processor;
    }
  }
  return $pipeline_processors;
}