You are here

function masquerade_update_6003 in Masquerade 6

Same name and namespace in other branches
  1. 7 masquerade.install \masquerade_update_6003()

Change masquerade_quick_switches variable to store a serialized array of user ID's. Reverts update 6001.

File

./masquerade.install, line 130
masquerade.install

Code

function masquerade_update_6003() {
  $users = variable_get('masquerade_quick_switches', NULL);
  if (!empty($users)) {
    $user_ids = drupal_explode_tags($users);
    if (!empty($user_ids)) {
      variable_set('masquerade_quick_switches', $user_ids);
    }
  }
  else {
    variable_del('masquerade_quick_switches');
  }
  return array();
}