From: Maggie Date: Mon, 5 May 2014 17:00:17 +0000 (-0400) Subject: Changed placement of hook to be able to access variables better X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b09332e92610b8441cb7e29ce993170a5f422d24;p=civicrm-core.git Changed placement of hook to be able to access variables better --- diff --git a/CRM/Badge/BAO/Badge.php b/CRM/Badge/BAO/Badge.php index 4c38a0d489..cc6c42edff 100644 --- a/CRM/Badge/BAO/Badge.php +++ b/CRM/Badge/BAO/Badge.php @@ -153,8 +153,6 @@ class CRM_Badge_BAO_Badge { } public function labelCreator(&$formattedRow, $cellspacing = 0) { - //call hook alterBadge - CRM_Utils_Hook::alterBadge($formattedRow['labelFormat'], $this, $formattedRow,$formattedRow['values']); $this->lMarginLogo = 18; $this->tMarginName = 20; @@ -162,6 +160,9 @@ class CRM_Badge_BAO_Badge { $x = $this->pdf->GetAbsX(); $y = $this->pdf->getY(); + //call hook alterBadge + CRM_Utils_Hook::alterBadge($formattedRow['labelFormat'], $this, $formattedRow,$formattedRow['values']); + $startOffset = 0; if (!empty($formattedRow['image_1'])) { $this->printImage($formattedRow['image_1'], NULL, NULL, CRM_Utils_Array::value('width_image_1', $formattedRow),