Merge remote-tracking branch 'upstream/4.5' into 4.5-4.6-2015-04-13-16-08-08
[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 } 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 */
30 function _demoqueue_civix_civicrm_xmlMenu(&$files) {
31 foreach (glob(__DIR__ . '/xml/Menu/*.xml') as $file) {
32 $files[] = $file;
33 }
34 }