Skip to content

Commit

Permalink
CRM-19813 - CRM_Utils_Hook - Set names for mailingTemplateTypes, et…
Browse files Browse the repository at this point in the history
…al (10x)
  • Loading branch information
totten committed Mar 8, 2017
1 parent 4b355d5 commit f20dbe2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions CRM/Utils/Hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,7 @@ public static function mailingGroups(&$form, &$groups, &$mailings) {
* @return mixed
*/
public static function mailingTemplateTypes(&$types) {
return self::singleton()->invoke(1, $types, self::$_nullObject, self::$_nullObject,
return self::singleton()->invoke(array('types'), $types, self::$_nullObject, self::$_nullObject,
self::$_nullObject, self::$_nullObject, self::$_nullObject,
'civicrm_mailingTemplateTypes'
);
Expand All @@ -971,7 +971,7 @@ public static function mailingTemplateTypes(&$types) {
* @return mixed
*/
public static function membershipTypeValues(&$form, &$membershipTypes) {
return self::singleton()->invoke(2, $form, $membershipTypes,
return self::singleton()->invoke(array('form', 'membershipTypes'), $form, $membershipTypes,
self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject,
'civicrm_membershipTypeValues'
);
Expand All @@ -991,7 +991,7 @@ public static function membershipTypeValues(&$form, &$membershipTypes) {
* The html snippet to include in the contact summary
*/
public static function summary($contactID, &$content, &$contentPlacement = self::SUMMARY_BELOW) {
return self::singleton()->invoke(3, $contactID, $content, $contentPlacement,
return self::singleton()->invoke(array('contactID', 'content', 'contentPlacement'), $contactID, $content, $contentPlacement,
self::$_nullObject, self::$_nullObject, self::$_nullObject,
'civicrm_summary'
);
Expand Down Expand Up @@ -1022,7 +1022,7 @@ public static function summary($contactID, &$content, &$contentPlacement = self:
* @return mixed
*/
public static function contactListQuery(&$query, $name, $context, $id) {
return self::singleton()->invoke(4, $query, $name, $context, $id,
return self::singleton()->invoke(array('query', 'name', 'context', 'id'), $query, $name, $context, $id,
self::$_nullObject, self::$_nullObject,
'civicrm_contactListQuery'
);
Expand Down Expand Up @@ -1055,7 +1055,7 @@ public static function alterPaymentProcessorParams(
&$rawParams,
&$cookedParams
) {
return self::singleton()->invoke(3, $paymentObj, $rawParams, $cookedParams,
return self::singleton()->invoke(array('paymentObj', 'rawParams', 'cookedParams'), $paymentObj, $rawParams, $cookedParams,
self::$_nullObject, self::$_nullObject, self::$_nullObject,
'civicrm_alterPaymentProcessorParams'
);
Expand All @@ -1073,7 +1073,7 @@ public static function alterPaymentProcessorParams(
* @return mixed
*/
public static function alterMailParams(&$params, $context = NULL) {
return self::singleton()->invoke(2, $params, $context,
return self::singleton()->invoke(array('params', 'context'), $params, $context,
self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject,
'civicrm_alterMailParams'
);
Expand All @@ -1098,7 +1098,7 @@ public static function alterMailParams(&$params, $context = NULL) {
* @return mixed
*/
public static function alterCalculatedMembershipStatus(&$membershipStatus, $arguments, $membership) {
return self::singleton()->invoke(3, $membershipStatus, $arguments,
return self::singleton()->invoke(array('membershipStatus', 'arguments', 'membership'), $membershipStatus, $arguments,
$membership, self::$_nullObject, self::$_nullObject, self::$_nullObject,
'civicrm_alterCalculatedMembershipStatus'
);
Expand All @@ -1113,7 +1113,7 @@ public static function alterCalculatedMembershipStatus(&$membershipStatus, $argu
* @return mixed
*/
public static function alterMailContent(&$content) {
return self::singleton()->invoke(1, $content,
return self::singleton()->invoke(array('content'), $content,
self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject,
'civicrm_alterMailContent'
);
Expand All @@ -1130,7 +1130,7 @@ public static function alterMailContent(&$content) {
* and the value is an array with keys 'label' and 'value' specifying label/value pairs
*/
public static function caseSummary($caseID) {
return self::singleton()->invoke(1, $caseID,
return self::singleton()->invoke(array('caseID'), $caseID,
self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject,
'civicrm_caseSummary'
);
Expand All @@ -1145,7 +1145,7 @@ public static function caseSummary($caseID) {
*/
public static function caseTypes(&$caseTypes) {
return self::singleton()
->invoke(1, $caseTypes, self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject, 'civicrm_caseTypes');
->invoke(array('caseTypes'), $caseTypes, self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject, 'civicrm_caseTypes');
}

/**
Expand Down

0 comments on commit f20dbe2

Please sign in to comment.