You are here

function config_pages_features_export_options in Config Pages 7

Implements hook_features_export_options().

File

./config_pages.features.inc, line 24
Integrates with features.

Code

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

  // Load all configuration pages.
  $list = config_pages_load_entity('', NULL, TRUE);
  foreach ($list as $item) {
    $config_type = config_pages_get_types($item->type);
    if ($config_type) {
      $options[$item->type . '-' . $item->context] = $config_type->label . ' (' . config_pages_context_label($item->context) . ')';
    }
  }
  return $options;
}