Code clean up.
[com.zyxware.civiwci.git] / wci.civix.php
index 86eba525dde4f42f609b81caa4d88ddc8318a6d2..4dd1640d51c4026dfaee9ed35a47288220da2575 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();
     }
   }
 }
@@ -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
+}