);
}
+ /**
+ * This hook is called after getting the content of the mail and before tokenizing it.
+ *
+ * @param array $templates
+ * Array fields include: html, text, subject
+ *
+ * @return mixed
+ */
+ public static function alterMailTemplates(&$templates) {
+ return self::singleton()->invoke(1, $templates,
+ self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject,
+ 'civicrm_alterMailTemplates'
+ );
+ }
+
/**
* This hook is called when rendering the Manage Case screen.
*
* This hook fires whenever a record in a case changes.
*
* @param \Civi\CCase\Analyzer $analyzer
+ * A bundle of data about the case (such as the case and activity records).
*/
public static function caseChange(\Civi\CCase\Analyzer $analyzer) {
$event = new \Civi\CCase\Event\CaseChangeEvent($analyzer);
\Civi::service('dispatcher')->dispatch("hook_civicrm_caseChange", $event);
- return self::singleton()->invoke(1, $angularModules,
+ self::singleton()->invoke(1, $analyzer,
self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject,
'civicrm_caseChange'
);