-
Notifications
You must be signed in to change notification settings - Fork 0
/
perfecto.install
27 lines (22 loc) · 909 Bytes
/
perfecto.install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
/**
* @file
* Install, update, and uninstall functions for the Perfecto module.
*/
/**
* Implements hook_uninstall().
*/
function perfecto_uninstall() {
global $base_path;
// Unset perfecto variables.
variable_del('perfecto_first_upload_ever');
file_unmanaged_delete_recursive('public://mod_perfecto');
// Remove cookies.
setcookie('perfecto_composition_id', '', time() - 3600, $base_path);
setcookie('perfecto_composition_first_show', '', time() - 3600, $base_path);
setcookie('perfecto_imagecompositioncontrols_opacity', '', time() - 3600, $base_path);
setcookie('perfecto_imagecompositioncontrols_visible', '', time() - 3600, $base_path);
setcookie('perfecto_composition_position_x', '', time() - 3600, $base_path);
setcookie('perfecto_composition_position_y', '', time() - 3600, $base_path);
setcookie('perfecto_composition_lock', '', time() - 3600, $base_path);
}