Merge pull request #13959 from mlutfy/setMessageError
[civicrm-core.git] / tools / extensions / org.civicrm.demoqueue / demoqueue.civix.php
1 <?php
2
3 // AUTO-GENERATED FILE -- This may be overwritten!
4
5 /**
6 * (Delegated) Implementation of hook_civicrm_config
7 * @param $config
8 */
9 function _demoqueue_civix_civicrm_config(&$config) {
10 $template =& CRM_Core_Smarty::singleton();
11
12 $extRoot = dirname(__FILE__) . DIRECTORY_SEPARATOR;
13 $extDir = $extRoot . 'templates';
14
15 if (is_array($template->template_dir)) {
16 array_unshift($template->template_dir, $extDir);
17 }
18 else {
19 $template->template_dir = [$extDir, $template->template_dir];
20 }
21
22 $include_path = $extRoot . PATH_SEPARATOR . get_include_path();
23 set_include_path($include_path);
24 }
25
26 /**
27 * (Delegated) Implementation of hook_civicrm_xmlMenu
28 *
29 * @param $files array(string)
30 */
31 function _demoqueue_civix_civicrm_xmlMenu(&$files) {
32 foreach (glob(__DIR__ . '/xml/Menu/*.xml') as $file) {
33 $files[] = $file;
34 }
35 }