function styles_style_features_export in Styles 7.2
Implements hook_features_export().
File
- includes/
styles.features.inc, line 21
Code
function styles_style_features_export($data, &$export, $module_name = '') {
$styles = styles_default_styles();
foreach ($data as $style_data) {
list($type, $name) = explode(':', $style_data);
$style = $styles[$type]['styles'][$name];
if (isset($style)) {
// Add a dependency if this style is provided by another module.
if (isset($style['module']) && $style['module'] != $module_name) {
$export['dependencies'][$module] = $style['module'];
}
else {
$export['features']['styles_style'][$style_data] = $style_data;
}
}
}
return array();
}