function certificate_update_6102 in Certificate 8.3
Same name and namespace in other branches
- 6.2 certificate.install \certificate_update_6102()
- 7.3 certificate.install \certificate_update_6102()
- 7.2 certificate.install \certificate_update_6102()
- 3.x certificate.install \certificate_update_6102()
Convert field groups.
File
- ./
certificate.install, line 387 - Install the Certificate module.
Code
function certificate_update_6102() {
$fieldgroups = variable_get('certificate_field_groups', array());
$new_fieldgroups = array();
foreach (array_keys($fieldgroups) as $title) {
$new_fieldgroups[str_replace(' ', '_', $title)] = $title;
}
variable_set('certificate_field_groups', $new_fieldgroups);
}