You are here

function exif_custom_features_export_render in EXIF Custom 7

Implements COMPONENT_features_export_render().

File

./exif_custom.features.inc, line 51
Features file for the exif_custom module.

Code

function exif_custom_features_export_render($module_name, $data) {

  // Render mappings as code.
  $items = array();
  foreach ($data as $name) {
    $items[$name] = exif_custom_export_map($name);
  }
  $code = "  \$items = " . features_var_export($items, '  ') . ";\n";
  $code .= '  return $items;';
  return array(
    'exif_custom_export_maps' => $code,
  );
}