function group_update_7008 in Group 7
Drop the group_default_roles variable.
File
- ./
group.install, line 592 - Install, update and uninstall functions for the Group project.
Code
function group_update_7008() {
$old_config = variable_get('group_default_roles');
// The content of group_default_roles has moved to the group types.
foreach (group_types() as $type => $group_type) {
if (!empty($old_config[$type])) {
$group_type->config['creator_roles'] = $old_config[$type];
$group_type
->save();
}
}
variable_del('group_default_roles');
}