From b09332e92610b8441cb7e29ce993170a5f422d24 Mon Sep 17 00:00:00 2001 From: Maggie Date: Mon, 5 May 2014 13:00:17 -0400 Subject: [PATCH] Changed placement of hook to be able to access variables better --- CRM/Badge/BAO/Badge.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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), -- 2.25.1