Merge pull request #4917 from eileenmcnaughton/minor-tidies
[civicrm-core.git] / tools / extensions / org.civicrm.demoqueue / demoqueue.civix.php
CommitLineData
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 */
9function _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 } else {
18 $template->template_dir = array( $extDir, $template->template_dir );
19 }
20
21 $include_path = $extRoot . PATH_SEPARATOR . get_include_path( );
22 set_include_path( $include_path );
23}
24
25/**
26 * (Delegated) Implementation of hook_civicrm_xmlMenu
27 *
28 * @param $files array(string)
29 */
30function _demoqueue_civix_civicrm_xmlMenu(&$files) {
31 foreach (glob(__DIR__ . '/xml/Menu/*.xml') as $file) {
32 $files[] = $file;
33 }
34}