You are here

function certificate_update_6102 in Certificate 7.2

Same name and namespace in other branches
  1. 8.3 certificate.install \certificate_update_6102()
  2. 6.2 certificate.install \certificate_update_6102()
  3. 7.3 certificate.install \certificate_update_6102()
  4. 3.x 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);
}