You are here

function ctools_component_configuration_export_options in Configuration Management 7

Master implementation of hook_configuration_export_options() for all ctools components.

2 calls to ctools_component_configuration_export_options()
ctools_configuration_check in includes/configuration.ctools.inc
ctools_configuration_hash in includes/configuration.ctools.inc

File

includes/configuration.ctools.inc, line 122

Code

function ctools_component_configuration_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_configuration_export_default_list($component, $schema);
    }
  }
  asort($options);
  return $options;
}