function certificate_update_6102 in Certificate 3.x
Same name and namespace in other branches
- 8.3 certificate.install \certificate_update_6102()
- 6.2 certificate.install \certificate_update_6102()
- 7.3 certificate.install \certificate_update_6102()
- 7.2 certificate.install \certificate_update_6102()
Convert field groups.
File
- ./
certificate.install, line 192 - 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);
}