function hansel_features_rebuild in Hansel breadcrumbs 7
Same name and namespace in other branches
- 8 hansel.features.inc \hansel_features_rebuild()
Implements hook_features_rebuild().
File
- ./
hansel.features.inc, line 70
Code
function hansel_features_rebuild($module_name) {
module_load_include('inc', 'hansel', 'hansel.export');
$config = module_invoke($module_name, 'hansel_default');
if (!empty($config)) {
foreach ($config as $element => $object) {
switch ($element) {
case 'config':
hansel_import_config($object);
break;
case 'settings':
hansel_import_settings($object);
break;
}
}
}
}