You are here

function mediafront_views_features_export_render in MediaFront 7.2

Implementation of hook_features_export_render().

File

includes/mediafront.features.inc, line 61

Code

function mediafront_views_features_export_render($module_name, $data) {
  $items = array();
  $options = mediafront_views_get_options();
  foreach ($data as $key) {
    $items[$key] = $options[$key];
  }
  $code = "  \$options = " . features_var_export($items, '  ') . ";\n";
  $code .= '  return $options;';
  return array(
    'mediafront_views_default_options' => $code,
  );
}