You are here

function custom_formatters_features_export_render in Custom Formatters 6

Implements hook_features_export_render().

File

includes/features.inc, line 49
Provides Custom Formatters integration with the Features module.

Code

function custom_formatters_features_export_render($module_name = '', $data) {
  module_load_include('inc', 'custom_formatters', 'custom_formatters.admin');
  $formatters = array();
  foreach ($data as $name) {
    $formatter = custom_formatters_formatter($name);
    unset($formatter->override);
    $formatters[$formatter->name] = $formatter;
    $formatters[$formatter->name]->source = 'module';
  }
  return array(
    'custom_formatters_defaults' => theme('custom_formatters_export_features', $formatters),
  );
}