function focal_point_uninstall in Focal Point 7
Same name and namespace in other branches
- 8 focal_point.install \focal_point_uninstall()
Implements hook_uninstall().
File
- ./
focal_point.install, line 26 - Install hooks for focal_point.
Code
function focal_point_uninstall() {
variable_del('focal_point_enabled_for');
variable_del('focal_point_default_method');
// Delete the test drive image.
$fid = variable_get('focal_point_test_drive_image', -1);
if ($file = file_load($fid)) {
file_usage_delete($file, 'focal_point');
file_delete($file);
}
variable_del('focal_point_test_drive_image');
}