function contemplate_features_rebuild in Content Templates (Contemplate) 6
1 call to contemplate_features_rebuild()
- contemplate_features_revert in includes/
contemplate.features.inc - Implementation of hook_features_revert().
File
- includes/
contemplate.features.inc, line 53
Code
function contemplate_features_rebuild($module) {
if ($types = features_get_default('contemplate', $module)) {
foreach ($types as $type => $template) {
// rework into the same format contemplate_save is used to
$template['teaserfield'] = $template['teaser'];
$template['bodyfield'] = $template['body'];
$template['rssfield'] = $template['rss'];
$edit['values'] = $template;
contemplate_save($edit);
}
}
}