08-07-2016, 12:05 AM
Look at this code for an example:
The coreBOS Address module permits you to have multiple addresses on Accounts and Contacts. When it is installed it adds fields and related lists to these modules, as one Account can have many Addresses much like ServiceContracts has many CycleCounter.
vtlib_handler is called on install of the module:
https://github.com/tsolucio/coreBOSAddress/blob/master/modules/cbAddress/cbAddress.php#L494
here we get a reference to another module (be it custom or not)
https://github.com/tsolucio/coreBOSAddress/blob/master/modules/cbAddress/cbAddress.php#L504
here we set the related list:
https://github.com/tsolucio/coreBOSAddress/blob/master/modules/cbAddress/cbAddress.php#L507
and below we do some additional magic.
have a look at that and keep asking
The coreBOS Address module permits you to have multiple addresses on Accounts and Contacts. When it is installed it adds fields and related lists to these modules, as one Account can have many Addresses much like ServiceContracts has many CycleCounter.
vtlib_handler is called on install of the module:
https://github.com/tsolucio/coreBOSAddress/blob/master/modules/cbAddress/cbAddress.php#L494
here we get a reference to another module (be it custom or not)
https://github.com/tsolucio/coreBOSAddress/blob/master/modules/cbAddress/cbAddress.php#L504
here we set the related list:
https://github.com/tsolucio/coreBOSAddress/blob/master/modules/cbAddress/cbAddress.php#L507
and below we do some additional magic.
have a look at that and keep asking
Joe
TSolucio
TSolucio