template_dir ) ) { array_unshift( $template->template_dir, $extDir ); } else { $template->template_dir = array( $extDir, $template->template_dir ); } $include_path = $extRoot . PATH_SEPARATOR . get_include_path( ); set_include_path( $include_path ); } /** * (Delegated) Implementation of hook_civicrm_xmlMenu * * @param $files array(string) */ function _demoqueue_civix_civicrm_xmlMenu(&$files) { foreach (glob(__DIR__ . '/xml/Menu/*.xml') as $file) { $files[] = $file; } }