You are here

function scald_context_type_features_export_options in Scald: Media Management made easy 7

Implements hook_features_export_options().

File

./scald.features.inc, line 11
File name: scald.features.inc.

Code

function scald_context_type_features_export_options() {
  $options = array();

  // Get all contexts by types.
  $contexts = scald_contexts();
  $types = scald_types();
  foreach ($contexts as $cname => $cdata) {
    foreach ($types as $tname => $tdata) {
      $options[$cname . '-' . $tname] = drupal_ucfirst(check_plain($cdata['title'])) . ': ' . check_plain($tdata->title);
    }
  }
  return $options;
}