Events
Geolocation events.
Event | Description | Available from version |
---|---|---|
onMainGeoIpHandlersBuildList | Event is triggered wet initializing list of geolocation handlers. Expected retrieved results type \Bitrix\Main\EventResult - \Bitrix\Main\EventResult::SUCCESS and as parameters - array with list of handlers.
Example: function addCustomGeoIpHandler() { return new \Bitrix\Main\EventResult( \Bitrix\Main\EventResult::SUCCESS, array( '\Custom\GeoIP\Handler' => '/local/custom/geoip/handler.php' ), 'main' ); } $eventManager->addEventHandler('main', 'onMainGeoIpHandlersBuildList', 'addCustomGeoIpHandler'); |
© «Bitrix24», 2001-2024