-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmethod.uninstall.php
More file actions
25 lines (24 loc) · 994 Bytes
/
Copy pathmethod.uninstall.php
File metadata and controls
25 lines (24 loc) · 994 Bytes
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
<?php
#----------------------------------------------------------------------
# Module: MBVFaq - a simple FAQ module
# Method: uninstall
#----------------------------------------------------------------------
# See file MBVFaq.module.php for full details of copyright, licence, etc.
#----------------------------------------------------------------------
// remove database tables
$dict = NewDataDictionary($db);
$sqlarray = $dict->DropTableSQL($this->CatTable);
$dict->ExecuteSQLArray($sqlarray);
$sqlarray = $dict->DropTableSQL($this->ItemTable);
$dict->ExecuteSQLArray($sqlarray);
// remove sequences
$db->DropSequence($this->CatTable.'_seq');
$db->DropSequence($this->ItemTable.'_seq');
// remove permissions
$this->RemovePermission($this->PermAdminName);
$this->RemovePermission($this->PermAddName);
$this->RemovePermission($this->PermModName);
$this->RemovePermission($this->PermDelName);
$this->RemovePermission($this->PermSeeName);
// remove all preferences
$this->RemovePreference();