function panopoly_widgets_update_7002 in Panopoly Widgets 7
Implementation of hook_update_N().
Revert panopoly_widget fields to avoid data loss in update 7003.
File
- ./
panopoly_widgets.install, line 131 - An installation file for Panopoly Widgets
Code
function panopoly_widgets_update_7002(&$sandbox) {
module_load_include('inc', 'features', 'features.export');
features_include();
// Need to give both the old Features 1.0 'field' component, and the new
// Features 2.0 'field_base' and 'field_instance' because we can't be sure of
// the version the user is upgrading to.
features_revert(array(
'panopoly_widgets' => array(
'field',
'field_base',
'field_instance',
),
));
}