----------------------------------------
* CRM-13201: Add alterTemplateFile hook
http://issues.civicrm.org/jira/browse/CRM-13201
return $this->_pages[$pageName]->getTemplateFileName();
}
+
+ /**
+ * A wrapper for getTemplateFileName that includes calling the hook to
+ * prevent us from having to copy & paste the logic of calling the hook
+ */
+ function getHookedTemplateFileName() {
+ $pageTemplateFile = $this->getTemplateFileName();
+ CRM_Utils_Hook::alterTemplateFile(get_class($this), $this, 'page', $pageTemplateFile);
+ return $pageTemplateFile;
+ }
}