-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbirthdays.php
58 lines (52 loc) · 1.9 KB
/
birthdays.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
<?php
/*-------------------------------------------------------+
| SYSTOPIA Birthdays |
| Copyright (C) 2022 SYSTOPIA |
| Author: B. Endres ([email protected]) |
+--------------------------------------------------------+
| This program is released as free software under the |
| Affero GPL license. You can redistribute it and/or |
| modify it under the terms of this license which you |
| can read by viewing the included agpl.txt or online |
| at www.gnu.org/licenses/agpl.html. Removal of this |
| copyright header is strictly prohibited without |
| written permission from the original author(s). |
+--------------------------------------------------------*/
use CRM_Birthdays_ExtensionUtil as E;
require_once 'birthdays.civix.php';
/**
* Implements hook_civicrm_config().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_config
*/
function birthdays_civicrm_config(&$config) {
_birthdays_civix_civicrm_config($config);
\Civi::dispatcher()->addSubscriber(new CRM_Birthdays_Tokens('birthdays'));
}
/**
* Implements hook_civicrm_install().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_install
*/
function birthdays_civicrm_install() {
_birthdays_civix_civicrm_install();
}
/**
* Implements hook_civicrm_enable().
*
* @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_enable
*/
function birthdays_civicrm_enable() {
_birthdays_civix_civicrm_enable();
}
function birthdays_civicrm_navigationMenu(&$menu) {
_birthdays_civix_insert_navigation_menu($menu, 'Administer/Communications', [
'label' => E::ts('Birthday Settings'),
'url' => 'civicrm/admin/birthdays',
'permission' => 'administer CiviCRM',
'operator' => 'OR',
'separator' => 0,
'icon' => 'crm-i fa-calendar-o',
'active' => 1
]);
}