Iām not getting my logic hook to call the class/method for some reason.
Iām SURE Iām doing something really stupidā¦not a highly seasoned OOP PHP guy.
In general, Iām trying to run some custom code when an Account record is saved. (Essentially updating a field in the Account record with some external data.)
For some reason, the logic_hook.php file executes, but the accountsDomainExp.php file āseemsā not to fire.
Can anyone point me in the right direction?
logic_hooks.php in custom/accounts folder:
$hook_array[āafter_saveā][] = Array(81, āupdateDomainExpirationDateā, ācustom/modules/Accounts/accountsDomainExp.phpā,āaccountsDomainExpā, āupdateDomainExpDateā);
file_put_contents(ācustom/modules/Accounts/hookFile.txtā, "Before Method Called!! " . date(āl jS \of F Y h:i:s Aā) . ā\nā, FILE_APPEND);
Iām Using the file_put_contents function just to see if itās firingā¦and THIS ONE Above āISā actually firing (3 times actuallyā¦which may be a separate issue all togehter.)
**Class file - accountsDomainExp.php **
Iām using the file_put_contents as a way to āseeā if/where the code is firingā¦BUT, Iām simply NOT getting any of them to fire.
Sorry for the newby questionā¦
Thanks for any point in the right direction!!