readme
[com.zyxware.civiwci.git] / wci.civix.php
index 86eba525dde4f42f609b81caa4d88ddc8318a6d2..c9c26099efa625b6895a03951f42da0abc3e9571 100644 (file)
@@ -1,5 +1,26 @@
 <?php
-
+/*
+ +--------------------------------------------------------------------+
+ | CiviCRM Widget Creation Interface (WCI) Version 1.0                |
+ +--------------------------------------------------------------------+
+ | Copyright Zyxware Technologies (c) 2014                            |
+ +--------------------------------------------------------------------+
+ | This file is a part of CiviCRM WCI.                                |
+ |                                                                    |
+ | CiviCRM WCI is free software; you can copy, modify, and distribute |
+ | it under the terms of the GNU Affero General Public License        |
+ | Version 3, 19 November 2007.                                       |
+ |                                                                    |
+ | CiviCRM WCI is distributed in the hope that it will be useful,     |
+ | but WITHOUT ANY WARRANTY; without even the implied warranty of     |
+ | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.               |
+ | See the GNU Affero General Public License for more details.        |
+ |                                                                    |
+ | You should have received a copy of the GNU Affero General Public   |
+ | License along with this program; if not, contact Zyxware           |
+ | Technologies at info[AT]zyxware[DOT]com.                           |
+ +--------------------------------------------------------------------+
+*/
 // AUTO-GENERATED FILE -- Civix may overwrite any changes made to this file
 
 /**
@@ -47,7 +68,7 @@ function _wci_civix_civicrm_xmlMenu(&$files) {
 function _wci_civix_civicrm_install() {
   _wci_civix_civicrm_config();
   if ($upgrader = _wci_civix_upgrader()) {
-    return $upgrader->onInstall();
+    $upgrader->onInstall();
   }
 }
 
@@ -59,7 +80,7 @@ function _wci_civix_civicrm_install() {
 function _wci_civix_civicrm_uninstall() {
   _wci_civix_civicrm_config();
   if ($upgrader = _wci_civix_upgrader()) {
-    return $upgrader->onUninstall();
+    $upgrader->onUninstall();
   }
 }
 
@@ -72,7 +93,7 @@ function _wci_civix_civicrm_enable() {
   _wci_civix_civicrm_config();
   if ($upgrader = _wci_civix_upgrader()) {
     if (is_callable(array($upgrader, 'onEnable'))) {
-      return $upgrader->onEnable();
+      $upgrader->onEnable();
     }
   }
 }
@@ -81,12 +102,13 @@ function _wci_civix_civicrm_enable() {
  * (Delegated) Implementation of hook_civicrm_disable
  *
  * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_disable
+ * @return mixed
  */
 function _wci_civix_civicrm_disable() {
   _wci_civix_civicrm_config();
   if ($upgrader = _wci_civix_upgrader()) {
     if (is_callable(array($upgrader, 'onDisable'))) {
-      return $upgrader->onDisable();
+      $upgrader->onDisable();
     }
   }
 }
@@ -169,7 +191,7 @@ function _wci_civix_civicrm_managed(&$entities) {
     $es = include $file;
     foreach ($es as $e) {
       if (empty($e['module'])) {
-        $e['module'] = 'org.civicrm.wci';
+        $e['module'] = 'com.zyxware.civiwci';
       }
       $entities[] = $e;
     }
@@ -198,7 +220,7 @@ function _wci_civix_civicrm_caseTypes(&$caseTypes) {
       // throw new CRM_Core_Exception($errorMessage);
     }
     $caseTypes[$name] = array(
-      'module' => 'org.civicrm.wci',
+      'module' => 'com.zyxware.civiwci',
       'name' => $name,
       'file' => $file,
     );
@@ -275,4 +297,4 @@ function _wci_civix_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) {
   if(is_dir($settingsDir) && !in_array($settingsDir, $metaDataFolders)) {
     $metaDataFolders[] = $settingsDir;
   }
-}
\ No newline at end of file
+}