function imageapi_optimize_features_export in Image Optimize (or ImageAPI Optimize) 7.2
Implements hook_features_export().
File
- ./
imageapi_optimize.features.inc, line 36 - Features integration for the ImageAPI Optimize module.
Code
function imageapi_optimize_features_export($data, &$export, $module_name = '') {
$pipe = array();
$map = features_get_default_map('imageapi_optimize');
foreach ($data as $pipeline) {
$export['dependencies']['imageapi_optimize'] = 'imageapi_optimize';
// If another module provides this style, add it as a dependency
if (isset($map[$pipeline]) && $map[$pipeline] != $module_name) {
$module = $map[$pipeline];
$export['dependencies'][$module] = $module;
}
elseif (imageapi_optimize_pipeline_load($pipeline)) {
$export['features']['imageapi_optimize'][$pipeline] = $pipeline;
}
}
return $pipe;
}