You are here

function autoassignrole_update_7102 in Auto Assign Role 7.2

Same name and namespace in other branches
  1. 7 autoassignrole.install \autoassignrole_update_7102()

Update variable autoassignrole_user_selection.

File

./autoassignrole.install, line 192
Installation related functionality for the auto assign role module.

Code

function autoassignrole_update_7102() {
  $user_selection = variable_get('autoassignrole_user_selection', 0);

  // If the current user_selection is set to be a checkbox (2), update it.
  if ($user_selection == 2) {
    variable_set('autoassignrole_user_selection', AUTOASSIGNROLE_ELEMENT_RADIO_CHECKBOX);
  }
}