You are here

function skinr_skin_features_export_render in Skinr 7.2

Implements hook_features_export_render().

File

./skinr.features.inc, line 65
Implements features integration for Skinr.

Code

function skinr_skin_features_export_render($module_name, $data, $export = NULL) {
  $code = array();

  // $code[] = '  $skins = array();';
  // $code[] = '';
  foreach ($data as $uuid) {
    if ($skin = skinr_skin_load_by_uuid($uuid)) {
      $code[] = skinr_skin_export($skin, '  ');
    }
  }
  $code[] = '';
  $code[] = '  return $skins;';
  $code = implode("\n", $code);
  return array(
    'skinr_skin_defaults' => $code,
  );
}