forked from systopia/de.systopia.osm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
osm.php
93 lines (84 loc) · 3.07 KB
/
osm.php
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?php
/*
+--------------------------------------------------------------------+
| CiviCRM OSM Geocoding module (SYS-OSM) |
+--------------------------------------------------------------------+
| Copyright SYSTOPIA (c) 2014-2015 |
+--------------------------------------------------------------------+
| This is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| SYS-OSM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the SYS-OSM Licensing Exception along |
| with this program; if not, contact SYSTOPIA |
| at info[AT]systopia[DOT]de. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*/
require_once 'osm.civix.php';
/**
* Implementation of hook_civicrm_config
*/
function osm_civicrm_config(&$config) {
_osm_civix_civicrm_config($config);
}
/**
* Implementation of hook_civicrm_xmlMenu
*
* @param $files array(string)
*/
function osm_civicrm_xmlMenu(&$files) {
_osm_civix_civicrm_xmlMenu($files);
}
/**
* Implementation of hook_civicrm_install
*/
function osm_civicrm_install() {
return _osm_civix_civicrm_install();
}
/**
* Implementation of hook_civicrm_uninstall
*/
function osm_civicrm_uninstall() {
return _osm_civix_civicrm_uninstall();
}
/**
* Implementation of hook_civicrm_enable
*/
function osm_civicrm_enable() {
return _osm_civix_civicrm_enable();
}
/**
* Implementation of hook_civicrm_disable
*/
function osm_civicrm_disable() {
return _osm_civix_civicrm_disable();
}
/**
* Implementation of hook_civicrm_upgrade
*
* @param $op string, the type of operation being performed; 'check' or 'enqueue'
* @param $queue CRM_Queue_Queue, (for 'enqueue') the modifiable list of pending up upgrade tasks
*
* @return mixed based on op. for 'check', returns array(boolean) (TRUE if upgrades are pending)
* for 'enqueue', returns void
*/
function osm_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) {
return _osm_civix_civicrm_upgrade($op, $queue);
}
/**
* Implementation of hook_civicrm_managed
*
* Generate a list of entities to create/deactivate/delete when this module
* is installed, disabled, uninstalled.
*/
function osm_civicrm_managed(&$entities) {
return _osm_civix_civicrm_managed($entities);
}