function imce_update_6002 in IMCE 6.2
Same name and namespace in other branches
- 6 imce.install \imce_update_6002()
Make file browser tab optional in user profiles.
File
- ./
imce.install, line 79 - Installs, updates, and uninstalls IMCE.
Code
function imce_update_6002() {
$profiles = variable_get('imce_profiles', array());
foreach ($profiles as $id => $profile) {
$profiles[$id]['usertab'] = isset($profiles[$id]['usertab']) ? $profiles[$id]['usertab'] : 1;
}
variable_set('imce_profiles', $profiles);
return array(
array(
'success' => TRUE,
'query' => 'File browser tab in user profiles was made optional.',
),
);
}