generated from compucorp/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththinkific.php
49 lines (43 loc) · 1.25 KB
/
thinkific.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
<?php
require_once 'thinkific.civix.php';
use CRM_Thinkific_ExtensionUtil as E;
/**
* Implements hook_civicrm_config().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_config/
*/
function thinkific_civicrm_config(&$config): void {
_thinkific_civix_civicrm_config($config);
}
/**
* Implements hook_civicrm_install().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_install
*/
function thinkific_civicrm_install(): void {
_thinkific_civix_civicrm_install();
}
/**
* Implements hook_civicrm_enable().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_enable
*/
function thinkific_civicrm_enable(): void {
_thinkific_civix_civicrm_enable();
}
/**
* Implements hook_civicrm_navigationMenu().
*
* @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_navigationMenu
*/
function thinkific_civicrm_navigationMenu(&$menu) {
_thinkific_civix_insert_navigation_menu($menu, 'Administer/CiviEvent', array(
'label' => E::ts('Thinkific LMS Settings'),
'name' => 'thinkific_lms_settings',
'url' => 'civicrm/admin/setting/preferences/thinkific',
'permission' => 'administer CiviCRM',
'operator' => 'OR',
'separator' => 0,
));
_thinkific_civix_navigationMenu($menu);
}