You are here

function ctools_component_features_export_options in Features 7

Same name and namespace in other branches
  1. 6 includes/features.ctools.inc \ctools_component_features_export_options()
  2. 7.2 includes/features.ctools.inc \ctools_component_features_export_options()

Master implementation of hook_features_export_options() for all ctools components.

File

includes/features.ctools.inc, line 130

Code

function ctools_component_features_export_options($component) {
  $options = array();
  ctools_include('export');
  $schema = ctools_export_get_schema($component);
  if ($schema && $schema['export']['bulk export']) {
    if (!empty($schema['export']['list callback']) && function_exists($schema['export']['list callback'])) {
      $options = $schema['export']['list callback']();
    }
    else {
      $options = _ctools_features_export_default_list($component, $schema);
    }
  }
  asort($options);
  return $options;
}