You are here

function styles_style_features_export_options in Styles 7.2

Implements hook_features_export_options().

File

includes/styles.features.inc, line 6

Code

function styles_style_features_export_options() {
  $options = array();
  foreach (styles_default_styles() as $name => $style) {
    foreach ($style['styles'] as $style_name => $style_instance) {

      // We need to know the field type and the actual machine name here,
      // so we add both to the name, and separate them with :
      $options[$name . ':' . $style_name] = $name . ': ' . (!empty($style_instance['label']) ? $style_instance['label'] : $style_instance['name']);
    }
  }
  return $options;
}