Add Backdrop support in CodeGen.
authorJen Lampton <jen@jeneration.com>
Wed, 16 Dec 2015 01:03:57 +0000 (17:03 -0800)
committerTim Otten <totten@civicrm.org>
Thu, 17 Dec 2015 04:32:06 +0000 (20:32 -0800)
CRM/Core/CodeGen/Config.php

index b31b172128d043aa42d4df82d82b25670c8da6e2..2dd6e211cb06a1c36ed491e8e01979786675f96f 100644 (file)
@@ -16,6 +16,7 @@ class CRM_Core_CodeGen_Config extends CRM_Core_CodeGen_BaseTask {
 
   public function setupCms() {
     if (!in_array($this->config->cms, array(
+      'backdrop',
       'drupal',
       'drupal8',
       'joomla',
@@ -51,6 +52,12 @@ class CRM_Core_CodeGen_Config extends CRM_Core_CodeGen_BaseTask {
   public function findConfigTemplate($cms) {
     $candidates = array();
     switch ($cms) {
+      case 'backdrop':
+        // FIXME!!!!
+        $candidates[] = "../drupal/civicrm.config.php.backdrop";
+        $candidates[] = "../../drupal/civicrm.config.php.backdrop";
+        break;
+
       case 'drupal':
         $candidates[] = "../drupal/civicrm.config.php.drupal";
         $candidates[] = "../../drupal/civicrm.config.php.drupal";