diff --git a/README.md b/README.md index 0635d55..5ef8ba4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# at.greenpeace.droptrigger +# Drop CiviCRM Database Triggers This extension allows the removal of database triggers set by CiviCRM, using the `hook_civicrm_triggerInfo` hook. diff --git a/droptrigger.civix.php b/droptrigger.civix.php index 8895eb4..13b01ae 100644 --- a/droptrigger.civix.php +++ b/droptrigger.civix.php @@ -193,8 +193,7 @@ function _droptrigger_civix_civicrm_disable() { * @param $op string, the type of operation being performed; 'check' or 'enqueue' * @param $queue CRM_Queue_Queue, (for 'enqueue') the modifiable list of pending up upgrade tasks * - * @return mixed based on op. for 'check', returns array(boolean) (TRUE if upgrades are pending) - * for 'enqueue', returns void + * @return array * * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_upgrade */ @@ -254,6 +253,7 @@ function _droptrigger_civix_find_files($dir, $pattern) { } return $result; } + /** * (Delegated) Implements hook_civicrm_managed(). * @@ -448,8 +448,6 @@ function _droptrigger_civix_civicrm_alterSettingsFolders(&$metaDataFolders = NUL * * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_entityTypes */ - function _droptrigger_civix_civicrm_entityTypes(&$entityTypes) { - $entityTypes = array_merge($entityTypes, array ( - )); + $entityTypes = array_merge($entityTypes, []); } diff --git a/droptrigger.php b/droptrigger.php index 5838a6b..4f09b79 100644 --- a/droptrigger.php +++ b/droptrigger.php @@ -1,12 +1,11 @@ '/^civicrm_activity$/', 'when' => '/^BEFORE$/', 'sql' => '/civicrm_case/', - ] + ], ]; foreach ($info as $id => $triggerInfo) { $dropTrigger = FALSE; @@ -164,4 +163,4 @@ function droptrigger_civicrm_triggerInfo(&$info, $tableName) { unset($info[$id]); } } -} \ No newline at end of file +}