function ds_import_default_data in Display Suite 6.3
Same name and namespace in other branches
- 6 ds.module \ds_import_default_data()
- 6.2 ds.module \ds_import_default_data()
Import default display data from modules.
Parameters
string $module The module to import.:
string $type The object type to import.:
string $build_mode The build mode to import.:
2 calls to ds_import_default_data()
- ds_flush_caches in ./
ds.module - Implementation of hook_flush_caches().
- ds_revert_form_submit in includes/
ds.tools.inc - Revert form submit.
File
- ./
ds.module, line 786
Code
function ds_import_default_data($module = '', $type = '', $build_mode = '') {
$data = module_invoke_all('ds_default_settings');
if (!empty($data)) {
module_load_include('inc', 'ds', 'includes/ds.tools');
ds_import_data($data, FALSE, FALSE, $module, $type, $build_mode);
}
}