Merge branch 4.5 into master
[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
7 */
8function _demoqueue_civix_civicrm_config(&$config) {
9 $template =& CRM_Core_Smarty::singleton();
10
11 $extRoot = dirname( __FILE__ ) . DIRECTORY_SEPARATOR;
12 $extDir = $extRoot . 'templates';
13
14 if ( is_array( $template->template_dir ) ) {
15 array_unshift( $template->template_dir, $extDir );
16 } else {
17 $template->template_dir = array( $extDir, $template->template_dir );
18 }
19
20 $include_path = $extRoot . PATH_SEPARATOR . get_include_path( );
21 set_include_path( $include_path );
22}
23
24/**
25 * (Delegated) Implementation of hook_civicrm_xmlMenu
26 *
27 * @param $files array(string)
28 */
29function _demoqueue_civix_civicrm_xmlMenu(&$files) {
30 foreach (glob(__DIR__ . '/xml/Menu/*.xml') as $file) {
31 $files[] = $file;
32 }
33}