Hello everybody
I have implemented a logic hook in my module 'holidays', in order to each time one user create a new record, an automatic mail be sent to the admin saying that this user just created a new record
My logic_hook.php has a code like this
here I have not the code)
PHP Code:
$hook_array['before_save'][] = Array(1, automaticmail, 'custom/modules/Holidays/automaticmail.php', 'automaticmail', 'lead_before_save_1');
My question is how I can do in order to the mail be sent each time the user creates a new record,I do not want that if the user edits the records a new mail be sent. (because I imagine that if the user edit the record, when he/she push save a new mail is sent to the admin)
Thanks,
Daniel
Bookmarks