You are here

function ctools_configuration_export in Configuration Management 7

Implements hook_configuration_export(). Adds references to the ctools mothership hook, ctools_plugin_api().

File

includes/configuration.ctools.inc, line 53

Code

function ctools_configuration_export($data, &$export, $module_name = '') {

  // Add ctools dependency
  $export['dependencies']['ctools'] = 'ctools';

  # We don't need the mothership hook

  // // Add the actual ctools components which will need to be accounted for in
  // // hook_ctools_plugin_api(). The components are actually identified by a
  // // delimited list of values: `module_name:api:current_version`
  // foreach ($data as $component) {
  //   if ($info = _ctools_configuration_get_info($component)) {
  //     $identifier = "{$info['module']}:{$info['api']}:{$info['current_version']}";
  //     $export['configuration']['ctools'][$identifier] = $identifier;
  //   }
  // }
  return array();
}