Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?php |
2 | ||
3 | // AUTO-GENERATED FILE -- This may be overwritten! | |
4 | ||
5 | /** | |
6 | * (Delegated) Implementation of hook_civicrm_config | |
d7c8cf03 | 7 | * @param $config |
6a488035 TO |
8 | */ |
9 | function _demoqueue_civix_civicrm_config(&$config) { | |
10 | $template =& CRM_Core_Smarty::singleton(); | |
11 | ||
b7c0a88f | 12 | $extRoot = dirname(__FILE__) . DIRECTORY_SEPARATOR; |
6a488035 TO |
13 | $extDir = $extRoot . 'templates'; |
14 | ||
b7c0a88f | 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]; | |
6a488035 TO |
20 | } |
21 | ||
b7c0a88f | 22 | $include_path = $extRoot . PATH_SEPARATOR . get_include_path(); |
23 | set_include_path($include_path); | |
6a488035 TO |
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 | } |