You are here

function custom_formatters_features_export in Custom Formatters 6

Implements hook_features_export().

File

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

Code

function custom_formatters_features_export($data, &$export, $module_name = '') {
  $export['dependencies']['custom_formatters'] = 'custom_formatters';
  foreach ($data as $name) {
    $formatter = custom_formatters_formatter($name);
    $export['features']['custom_formatters'][$formatter->name] = $formatter->name;
  }
}