function data_export in Data 8
Same name and namespace in other branches
- 6 data.module \data_export()
- 7 data.module \data_export()
Export a data table. This does not export the content of a table - only its schema and any meta information (title, name, meta...).
Parameters
$name: The name of the table to be exported.
Return value
Exportable code.
1 call to data_export()
- DataTestCaseAPI::testAPIFunctions in tests/
data.test - Test API functions of DataTable and TableFactory.
File
- ./
data.module, line 305 - Hooks and API functions for data module.
Code
function data_export($name, $indent = '') {
ctools_include('export');
$result = ctools_export_load_object('data_tables', 'names', array(
$name,
));
if (isset($result[$name])) {
return ctools_export_object('data_tables', $result[$name], $indent);
}
}