I'm wanting to add content to a region in EventInfo.tpl. The Docs give this function as an example, but do not clarify exactly where this "CRM_Core_Region::instance('page-body')->add" method is called from.
CRM_Core_Region::instance('page-body')->add(array(
'markup' => '<p>Congratulations! You won the lottery!</p>',
));
Can I call this method from within a theme file like functions.php? Is there a predefined directory where custom region code should live?