3 require_once 'greenwich.civix.php';
5 use CRM_Greenwich_ExtensionUtil
as E
;
9 * Implements hook_civicrm_config().
11 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_config/
13 function greenwich_civicrm_config(&$config) {
14 _greenwich_civix_civicrm_config($config);
18 // * Implements hook_civicrm_xmlMenu().
20 // * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_xmlMenu
22 //function greenwich_civicrm_xmlMenu(&$files) {
23 // _greenwich_civix_civicrm_xmlMenu($files);
27 * Implements hook_civicrm_themes().
29 function greenwich_civicrm_themes(&$themes) {
30 // _greenwich_civix_civicrm_themes($themes);
31 $themes['greenwich'] = [
33 'title' => 'Greenwich',
34 'help' => ts('CiviCRM 4.x look-and-feel'),
39 * Implements hook_civicrm_alterBundle().
41 function greenwich_civicrm_alterBundle(CRM_Core_Resources_Bundle
$bundle) {
42 $theme = Civi
::service('themes')->getActiveThemeKey();
43 switch ($theme . ':' . $bundle->name
) {
44 case 'greenwich:bootstrap3':
46 $bundle->addStyleFile('greenwich', 'dist/bootstrap3.css');
47 $bundle->addScriptFile('greenwich', 'extern/bootstrap3/assets/javascripts/bootstrap.min.js', [
50 $bundle->addScriptFile('greenwich', 'js/noConflict.js', [