function masquerade_update_6003 in Masquerade 7
Same name and namespace in other branches
- 6 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 113 - 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');
}
}