function _ctools_configuration_export_crud_save in Configuration Management 7
Wrapper around ctools_export_crud_save() for < 1.7 compatibility.
1 call to _ctools_configuration_export_crud_save()
- ctools_component_configuration_revert in includes/
configuration.ctools.inc - Master implementation of hook_configuration_revert() for all ctools components.
File
- includes/
configuration.ctools.inc, line 320
Code
function _ctools_configuration_export_crud_save($table, $name, $object) {
if (ctools_api_version('1.7')) {
$schema = ctools_export_get_schema($table);
$in_activestore = ctools_export_crud_load($table, $name);
if (is_object($in_activestore)) {
$object->{$schema['export']['primary key']} = $in_activestore->{$schema['export']['primary key']};
$object->export_type = $in_activestore->export_type;
}
// @todo: Panel pages can't import from datastore this way. Have to figure
// out how to get panel pages imported.
// page_manager_get_tasks();
// module_load_include('inc', 'panels', 'plugins/task_handlers/panel_context');
// foreach ($object->default_handlers as &$handler) {
// panels_panel_context_save($handler, '');
// }
ctools_export_crud_save($table, $object);
}
}