function imce_unzip_uninstall in IMCE unzip 7
Same name and namespace in other branches
- 6 imce_unzip.install \imce_unzip_uninstall()
Implements hook_uninstall().
File
- ./
imce_unzip.install, line 35 - Install, update and uninstall functions for the IMCE_unzip module.
Code
function imce_unzip_uninstall() {
// Update profiles. delete mkdir settings.
$profiles = variable_get('imce_profiles', array());
foreach ($profiles as $i => $profile) {
foreach ($profile['directories'] as $j => $directory) {
unset($profiles[$i]['directories'][$j]['unzip']);
}
}
variable_set('imce_profiles', $profiles);
// Unregister custom content function.
$funcs = variable_get('imce_custom_content', array());
unset($funcs['imce_unzip_content']);
variable_set('imce_custom_content', $funcs);
// Unregister custom profile process.
$funcs = variable_get('imce_custom_process', array());
unset($funcs['imce_unzip_process_profile']);
variable_set('imce_custom_process', $funcs);
}