You are here

function imagecache_features_export in Features 6

Implementation of hook_features_export().

File

includes/features.imagecache.inc, line 29

Code

function imagecache_features_export($data, &$export, $module_name = '') {

  // Collect a module to preset map
  $map = features_get_default_map('imagecache', 'presetname');
  foreach ($data as $preset) {

    // If another module provides this preset, add it as a dependency
    if (isset($map[$preset]) && $map[$preset] != $module_name) {
      $module = $map[$preset];
      $export['dependencies'][$module] = $module;
    }
    else {
      $export['features']['imagecache'][$preset] = $preset;
    }
  }
}