3 require_once 'ewaysingle.civix.php';
5 use CRM_Ewaysingle_ExtensionUtil
as E
;
9 * Implements hook_civicrm_config().
11 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_config/
13 function ewaysingle_civicrm_config(&$config) {
14 _ewaysingle_civix_civicrm_config($config);
18 * Implements hook_civicrm_xmlMenu().
20 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_xmlMenu
22 function ewaysingle_civicrm_xmlMenu(&$files) {
23 _ewaysingle_civix_civicrm_xmlMenu($files);
27 * Implements hook_civicrm_install().
29 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_install
31 function ewaysingle_civicrm_install() {
32 _ewaysingle_civix_civicrm_install();
36 * Implements hook_civicrm_postInstall().
38 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_postInstall
40 function ewaysingle_civicrm_postInstall() {
41 _ewaysingle_civix_civicrm_postInstall();
45 * Implements hook_civicrm_uninstall().
47 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_uninstall
49 function ewaysingle_civicrm_uninstall() {
50 _ewaysingle_civix_civicrm_uninstall();
54 * Implements hook_civicrm_enable().
56 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_enable
58 function ewaysingle_civicrm_enable() {
59 _ewaysingle_civix_civicrm_enable();
63 * Implements hook_civicrm_disable().
65 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_disable
67 function ewaysingle_civicrm_disable() {
68 _ewaysingle_civix_civicrm_disable();
72 * Implements hook_civicrm_upgrade().
74 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_upgrade
76 function ewaysingle_civicrm_upgrade($op, CRM_Queue_Queue
$queue = NULL) {
77 return _ewaysingle_civix_civicrm_upgrade($op, $queue);
81 * Implements hook_civicrm_managed().
83 * Generate a list of entities to create/deactivate/delete when this module
84 * is installed, disabled, uninstalled.
86 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_managed
88 function ewaysingle_civicrm_managed(&$entities) {
89 _ewaysingle_civix_civicrm_managed($entities);
93 * Implements hook_civicrm_caseTypes().
95 * Generate a list of case-types.
97 * Note: This hook only runs in CiviCRM 4.4+.
99 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_caseTypes
101 function ewaysingle_civicrm_caseTypes(&$caseTypes) {
102 _ewaysingle_civix_civicrm_caseTypes($caseTypes);
106 * Implements hook_civicrm_angularModules().
108 * Generate a list of Angular modules.
110 * Note: This hook only runs in CiviCRM 4.5+. It may
111 * use features only available in v4.6+.
113 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_angularModules
115 function ewaysingle_civicrm_angularModules(&$angularModules) {
116 _ewaysingle_civix_civicrm_angularModules($angularModules);
120 * Implements hook_civicrm_alterSettingsFolders().
122 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders
124 function ewaysingle_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) {
125 _ewaysingle_civix_civicrm_alterSettingsFolders($metaDataFolders);
129 * Implements hook_civicrm_entityTypes().
131 * Declare entity types provided by this module.
133 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_entityTypes
135 function ewaysingle_civicrm_entityTypes(&$entityTypes) {
136 _ewaysingle_civix_civicrm_entityTypes($entityTypes);
140 * Implements hook_civicrm_thems().
142 function ewaysingle_civicrm_themes(&$themes) {
143 _ewaysingle_civix_civicrm_themes($themes);
146 // --- Functions below this ship commented out. Uncomment as required. ---
149 * Implements hook_civicrm_preProcess().
151 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_preProcess
153 //function ewaysingle_civicrm_preProcess($formName, &$form) {
158 * Implements hook_civicrm_navigationMenu().
160 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_navigationMenu
162 //function ewaysingle_civicrm_navigationMenu(&$menu) {
163 // _ewaysingle_civix_insert_navigation_menu($menu, 'Mailings', array(
164 // 'label' => E::ts('New subliminal message'),
165 // 'name' => 'mailing_subliminal_message',
166 // 'url' => 'civicrm/mailing/subliminal',
167 // 'permission' => 'access CiviMail',
168 // 'operator' => 'OR',
171 // _ewaysingle_civix_navigationMenu($menu);