You are here

function imce_update_6002 in IMCE 6

Same name and namespace in other branches
  1. 6.2 imce.install \imce_update_6002()

Make file browser tab optional in user profiles.

File

./imce.install, line 49

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.',
    ),
  );
}