* {postEvent name="template_footerUserCountry"} * * * Plugins can then hook on this event by using the Piwik_AddAction function: * Piwik_AddAction('template_footerUserCountry', 'functionToHookOnThisEvent'); * * @param string $name The name of the event * @return string The string eventually modified by the plugins listening to this event */ function smarty_function_postEvent($params, &$smarty) { if(!isset($params['name'])) { throw new Exception("The smarty function postEvent needs a 'name' parameter."); } $eventName = $params['name']; $str = ''; Piwik_PostEvent($eventName, $str); return $str; }