| 1 | <?php |
| 2 | |
| 3 | require_once 'payflowpro.civix.php'; |
| 4 | // phpcs:disable |
| 5 | use CRM_Payflowpro_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 payflowpro_civicrm_config(&$config) { |
| 14 | _payflowpro_civix_civicrm_config($config); |
| 15 | } |
| 16 | |
| 17 | /** |
| 18 | * Implements hook_civicrm_install(). |
| 19 | * |
| 20 | * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_install |
| 21 | */ |
| 22 | function payflowpro_civicrm_install() { |
| 23 | _payflowpro_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 payflowpro_civicrm_postInstall() { |
| 32 | _payflowpro_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 payflowpro_civicrm_uninstall() { |
| 41 | _payflowpro_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 payflowpro_civicrm_enable() { |
| 50 | _payflowpro_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 payflowpro_civicrm_disable() { |
| 59 | _payflowpro_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 payflowpro_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) { |
| 68 | return _payflowpro_civix_civicrm_upgrade($op, $queue); |
| 69 | } |
| 70 | |
| 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 payflowpro_civicrm_entityTypes(&$entityTypes) { |
| 79 | _payflowpro_civix_civicrm_entityTypes($entityTypes); |
| 80 | } |
| 81 | |
| 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 payflowpro_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 payflowpro_civicrm_navigationMenu(&$menu) { |
| 99 | // _payflowpro_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 | // _payflowpro_civix_navigationMenu($menu); |
| 108 | //} |