3 require_once 'afform_html.civix.php';
4 use CRM_AfformHtml_ExtensionUtil
as E
;
7 * Implements hook_civicrm_config().
9 * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_config
11 function afform_html_civicrm_config(&$config) {
12 _afform_html_civix_civicrm_config($config);
16 * Implements hook_civicrm_xmlMenu().
18 * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_xmlMenu
20 function afform_html_civicrm_xmlMenu(&$files) {
21 _afform_html_civix_civicrm_xmlMenu($files);
25 * Implements hook_civicrm_install().
27 * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_install
29 function afform_html_civicrm_install() {
30 _afform_html_civix_civicrm_install();
34 * Implements hook_civicrm_postInstall().
36 * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_postInstall
38 function afform_html_civicrm_postInstall() {
39 _afform_html_civix_civicrm_postInstall();
43 * Implements hook_civicrm_uninstall().
45 * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_uninstall
47 function afform_html_civicrm_uninstall() {
48 _afform_html_civix_civicrm_uninstall();
52 * Implements hook_civicrm_enable().
54 * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_enable
56 function afform_html_civicrm_enable() {
57 _afform_html_civix_civicrm_enable();
61 * Implements hook_civicrm_disable().
63 * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_disable
65 function afform_html_civicrm_disable() {
66 _afform_html_civix_civicrm_disable();
70 * Implements hook_civicrm_upgrade().
72 * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_upgrade
74 function afform_html_civicrm_upgrade($op, CRM_Queue_Queue
$queue = NULL) {
75 return _afform_html_civix_civicrm_upgrade($op, $queue);
79 * Implements hook_civicrm_managed().
81 * Generate a list of entities to create/deactivate/delete when this module
82 * is installed, disabled, uninstalled.
84 * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_managed
86 function afform_html_civicrm_managed(&$entities) {
87 _afform_html_civix_civicrm_managed($entities);
91 * Implements hook_civicrm_caseTypes().
93 * Generate a list of case-types.
95 * Note: This hook only runs in CiviCRM 4.4+.
97 * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_caseTypes
99 function afform_html_civicrm_caseTypes(&$caseTypes) {
100 _afform_html_civix_civicrm_caseTypes($caseTypes);
104 * Implements hook_civicrm_angularModules().
106 * Generate a list of Angular modules.
108 * Note: This hook only runs in CiviCRM 4.5+. It may
109 * use features only available in v4.6+.
111 * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_angularModules
113 function afform_html_civicrm_angularModules(&$angularModules) {
114 _afform_html_civix_civicrm_angularModules($angularModules);
118 * Implements hook_civicrm_alterSettingsFolders().
120 * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_alterSettingsFolders
122 function afform_html_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) {
123 _afform_html_civix_civicrm_alterSettingsFolders($metaDataFolders);
127 * Implements hook_civicrm_entityTypes().
129 * Declare entity types provided by this module.
131 * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_entityTypes
133 function afform_html_civicrm_entityTypes(&$entityTypes) {
134 _afform_html_civix_civicrm_entityTypes($entityTypes);
137 // --- Functions below this ship commented out. Uncomment as required. ---
140 * Implements hook_civicrm_preProcess().
142 * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_preProcess
144 function afform_html_civicrm_preProcess($formName, &$form) {
149 * Implements hook_civicrm_navigationMenu().
151 * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_navigationMenu
153 function afform_html_civicrm_navigationMenu(&$menu) {
154 _afform_html_civix_insert_navigation_menu($menu, 'Mailings', array(
155 'label' => E::ts('New subliminal message'),
156 'name' => 'mailing_subliminal_message',
157 'url' => 'civicrm/mailing/subliminal',
158 'permission' => 'access CiviMail',
162 _afform_html_civix_navigationMenu($menu);