r75495 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r75494‎ | r75495 | r75496 >
Date:01:36, 27 October 2010
Author:awjrichards
Status:deferred
Tags:
Comment:
Moved hook call to end of import function
Modified paths:
  • /civicrm/trunk/sites/all/modules/queue2civicrm/queue2civicrm.module (modified) (history)

Diff [purge]

Index: civicrm/trunk/sites/all/modules/queue2civicrm/queue2civicrm.module
@@ -332,9 +332,7 @@
333333
334334 $contribution['id'] = $contribution_result['id'];
335335
336 - // Send thank you email
337 - module_invoke_all('queue2civicrm_import', $contribution['id']);
338 -
 336+
339337 // Map the tracking record to the CiviCRM contribution
340338 if (array_key_exists('contribution_tracking_id', $msg)) {
341339 db_query('UPDATE {contribution_tracking} SET contribution_id = %d WHERE id = %d LIMIT 1', $contribution['id'], $msg['contribution_tracking_id']);
@@ -347,6 +345,10 @@
348346 );
349347 $tag_result = &civicrm_entity_tag_add( $tag );
350348
 349+ // Send thank you email, other post-import things
 350+ module_invoke_all('queue2civicrm_import', $contribution['id']);
 351+
 352+
351353 return TRUE;
352354
353355 }

Status & tagging log