-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhooks.php
More file actions
42 lines (31 loc) · 1.45 KB
/
hooks.php
File metadata and controls
42 lines (31 loc) · 1.45 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/*=================================================================\
| FA TCPDF |
|-----------------------------------------------------------------|
| Creator: Mohsin Mujawar<contact@impulsesolutions.in> |
| Date : 31-Aug-2020 |
| Description: TCPDF MODULE FOR FRONT ACCOUNTING 2.4.8 |
| Free software under GNU GPL |
| |
\==================================================================*/
define ('IMPULSE_TCPDF', 251<<8);
class hooks_TCPDF extends hooks {
function __construct() {
$this->module_name = 'TCPDF';
}
function install_access() {
$security_sections[IMPULSE_TCPDF] = _('TCPDF');
$security_areas['PULSE_PDF'] = array(IMPULSE_TCPDF|1, _('Allow PDF Printing'));
return array($security_areas, $security_sections);
}
function activate_extension($company, $check_only=true) {
global $db_connections;
$updates = array( 'update.sql' => array('TCPDF'));
return $this->update_databases($company, $updates, $check_only);
}
function deactivate_extension($company, $check_only=true) {
global $db_connections;
$updates = array('remove.sql' => array('TCPDF'));
return $this->update_databases($company, $updates, $check_only);
}
}