mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-29 08:17:18 +08:00
git-subtree-dir: public/legacy git-subtree-split: 817a12dc0c30c189f56d5cb1f7dc37a9631bdbe3
35 lines
811 B
PHP
35 lines
811 B
PHP
<?php
|
|
|
|
// custom/modules/Contacts/ContactsJjwg_MapsLogicHook.php
|
|
|
|
if (!defined('sugarEntry') || !sugarEntry) {
|
|
die('Not A Valid Entry Point');
|
|
}
|
|
|
|
class ContactsJjwg_MapsLogicHook
|
|
{
|
|
public $jjwg_Maps;
|
|
public function __construct()
|
|
{
|
|
$this->jjwg_Maps = get_module_info('jjwg_Maps');
|
|
}
|
|
|
|
|
|
|
|
|
|
public function updateGeocodeInfo(&$bean, $event, $arguments)
|
|
{
|
|
// before_save
|
|
if ($this->jjwg_Maps->settings['logic_hooks_enabled']) {
|
|
$this->jjwg_Maps->updateGeocodeInfo($bean);
|
|
}
|
|
}
|
|
|
|
public function updateRelatedMeetingsGeocodeInfo(&$bean, $event, $arguments)
|
|
{
|
|
// after_save
|
|
if ($this->jjwg_Maps->settings['logic_hooks_enabled']) {
|
|
$this->jjwg_Maps->updateRelatedMeetingsGeocodeInfo($bean);
|
|
}
|
|
}
|
|
}
|