function fivestar_update_7202 in Fivestar 7.2
Moves the field settings to field instance settings.
File
- ./
fivestar.install, line 54 - Install, update, and uninstall functions the Fivestar module.
Code
function fivestar_update_7202() {
$fields = field_read_fields(array(
'module' => 'fivestar',
));
foreach ($fields as $field) {
$instances = field_read_instances(array(
'field_name' => $field['field_name'],
));
foreach ($instances as $instance) {
$instance['settings'] = $field['settings'];
field_update_instance($instance);
}
}
}