Commit | Line | Data |
---|---|---|
191b5c81 EM |
1 | <?php |
2 | ||
3 | require_once 'legacycustomsearches.civix.php'; | |
4 | // phpcs:disable | |
5 | use CRM_Legacycustomsearches_ExtensionUtil as E; | |
6 | // phpcs:enable | |
7 | ||
8 | /** | |
9 | * Implements hook_civicrm_config(). | |
10 | * | |
11 | * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_config/ | |
12 | */ | |
13 | function legacycustomsearches_civicrm_config(&$config) { | |
14 | _legacycustomsearches_civix_civicrm_config($config); | |
15 | } | |
16 | ||
191b5c81 EM |
17 | /** |
18 | * Implements hook_civicrm_install(). | |
19 | * | |
20 | * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_install | |
21 | */ | |
22 | function legacycustomsearches_civicrm_install() { | |
23 | _legacycustomsearches_civix_civicrm_install(); | |
24 | } | |
25 | ||
26 | /** | |
27 | * Implements hook_civicrm_postInstall(). | |
28 | * | |
29 | * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_postInstall | |
30 | */ | |
31 | function legacycustomsearches_civicrm_postInstall() { | |
32 | _legacycustomsearches_civix_civicrm_postInstall(); | |
33 | } | |
34 | ||
35 | /** | |
36 | * Implements hook_civicrm_uninstall(). | |
37 | * | |
38 | * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_uninstall | |
39 | */ | |
40 | function legacycustomsearches_civicrm_uninstall() { | |
41 | _legacycustomsearches_civix_civicrm_uninstall(); | |
42 | } | |
43 | ||
44 | /** | |
45 | * Implements hook_civicrm_enable(). | |
46 | * | |
47 | * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_enable | |
48 | */ | |
49 | function legacycustomsearches_civicrm_enable() { | |
50 | _legacycustomsearches_civix_civicrm_enable(); | |
51 | } | |
52 | ||
53 | /** | |
54 | * Implements hook_civicrm_disable(). | |
55 | * | |
56 | * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_disable | |
57 | */ | |
58 | function legacycustomsearches_civicrm_disable() { | |
59 | _legacycustomsearches_civix_civicrm_disable(); | |
60 | } | |
61 | ||
62 | /** | |
63 | * Implements hook_civicrm_upgrade(). | |
64 | * | |
65 | * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_upgrade | |
66 | */ | |
67 | function legacycustomsearches_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) { | |
68 | return _legacycustomsearches_civix_civicrm_upgrade($op, $queue); | |
69 | } | |
70 | ||
191b5c81 EM |
71 | /** |
72 | * Implements hook_civicrm_entityTypes(). | |
73 | * | |
74 | * Declare entity types provided by this module. | |
75 | * | |
76 | * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_entityTypes | |
77 | */ | |
78 | function legacycustomsearches_civicrm_entityTypes(&$entityTypes) { | |
79 | _legacycustomsearches_civix_civicrm_entityTypes($entityTypes); | |
80 | } | |
81 | ||
191b5c81 EM |
82 | // --- Functions below this ship commented out. Uncomment as required. --- |
83 | ||
84 | /** | |
85 | * Implements hook_civicrm_preProcess(). | |
86 | * | |
87 | * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_preProcess | |
88 | */ | |
89 | //function legacycustomsearches_civicrm_preProcess($formName, &$form) { | |
90 | // | |
91 | //} | |
92 | ||
93 | /** | |
94 | * Implements hook_civicrm_navigationMenu(). | |
95 | * | |
96 | * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_navigationMenu | |
97 | */ | |
98 | //function legacycustomsearches_civicrm_navigationMenu(&$menu) { | |
99 | // _legacycustomsearches_civix_insert_navigation_menu($menu, 'Mailings', array( | |
100 | // 'label' => E::ts('New subliminal message'), | |
101 | // 'name' => 'mailing_subliminal_message', | |
102 | // 'url' => 'civicrm/mailing/subliminal', | |
103 | // 'permission' => 'access CiviMail', | |
104 | // 'operator' => 'OR', | |
105 | // 'separator' => 0, | |
106 | // )); | |
107 | // _legacycustomsearches_civix_navigationMenu($menu); | |
108 | //} |