-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlc_connector.install
68 lines (62 loc) · 1.43 KB
/
lc_connector.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
// vim: set ts=4 sw=4 sts=4 et ft=php:
/**
* @file
* Installation routines
*
* @category Litecommerce connector
* @package Litecommerce connector
* @author Creative Development LLC <[email protected]>
* @copyright Copyright (c) 2011 Creative Development LLC <[email protected]>. All rights reserved
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2
* @link http://www.litecommerce.com/
* @since 1.0.0
*/
/**
* Module tables schema
*
* @hook schema
* @return void
* @since 1.0.0
*/
function lc_connector_schema() {
return LCConnector_Install::getSchema();
}
/**
* Install module
*
* @hook install
* @return void
* @since 1.0.0
*/
function lc_connector_install() {
LCConnector_Install::performInstall();
}
/**
* Uninstall module
*
* @hook uninstall
* @return void
* @since 1.0.0
*/
function lc_connector_uninstall() {
LCConnector_Install::performUninstall();
}
/**
* Implementation hook_requirements()
*
* @param string $phase Installation type
*
* @hook requirements
* @return array
* @since 1.0.0
*/
function lc_connector_requirements($phase) {
return LCConnector_Install::checkRequirements($phase);
}
// Include some scripts if not loaded yet
if (!class_exists('LCConnector_Install')) {
$current_dir = dirname(__FILE__);
require_once $current_dir . '/classes/Abstract.php';
require_once $current_dir . '/classes/Install.php';
}