);
}
+ /**
+ * This hook is called before and after constructing mail recipients.
+ * Allows user to alter filter and/or search query to fetch mail recipients
+ *
+ * @param CRM_Mailing_DAO_Mailing $mailingObject
+ * @param CRM_Mailing_Event_BAO_Queue $mailingEventQueueObject
+ * @param int $mailingJobID
+ * @param array $params
+ * @param string $context
+ *
+ */
+ public static function alterMailingRecipients(&$mailingObject, &$mailingEventQueueObject, $mailingJobID, &$params, $context) {
+ return self::singleton()->invoke(array('mailingObject', 'mailingEventQueueObject', '$mailingJobID', 'params', 'context'),
+ $mailingObject, $mailingEventQueueObject, $mailingJobID, $params, $context,
+ self::$_nullObject,
+ 'civicrm_alterMailingRecipients'
+ );
+ }
+
}