View source
<?php
function imce_install() {
include_once './' . drupal_get_path('module', 'imce') . '/inc/core_profiles.inc';
imce_install_profiles();
}
function imce_uninstall() {
variable_del('imce_profiles');
variable_del('imce_roles_profiles');
variable_del('imce_settings_textarea');
variable_del('imce_settings_absurl');
variable_del('imce_settings_replace');
variable_del('imce_settings_disable_private');
variable_del('imce_custom_content');
variable_del('imce_custom_process');
variable_del('imce_custom_scan');
}
function imce_update_6000() {
imce_install();
return array();
}
function imce_update_6001() {
$profiles = variable_get('imce_profiles', array());
foreach ($profiles as $id => $profile) {
$profiles[$id]['tuquota'] = 0;
}
variable_set('imce_profiles', $profiles);
return array();
}
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.',
),
);
}