/** * Add event triggers and actions * * @param WebhookBuilderEvent $event */ public function onWebhookBuild(WebhookBuilderEvent $event) { // add checkbox to the webhook form for new leads $formSubmit = array('label' => 'mautic.form.webhook.event.form.submit', 'description' => 'mautic.form.webhook.event.form.submit_desc'); // add it to the list $event->addEvent(FormEvents::FORM_ON_SUBMIT, $formSubmit); }
/** * Add event triggers and actions * * @param WebhookBuilderEvent $event */ public function onWebhookBuild(WebhookBuilderEvent $event) { // add checkbox to the webhook form for new leads $pageHit = array('label' => 'mautic.page.webhook.event.hit', 'description' => 'mautic.page.webhook.event.hit_desc'); // add it to the list $event->addEvent(PageEvents::PAGE_ON_HIT, $pageHit); }
/** * Add event triggers and actions * * @param WebhookBuilderEvent $event */ public function onWebhookBuild(WebhookBuilderEvent $event) { // add checkbox to the webhook form for new leads $mailOpen = array('label' => 'mautic.email.webhook.event.open', 'description' => 'mautic.email.webhook.event.open_desc'); // add it to the list $event->addEvent(EmailEvents::EMAIL_ON_OPEN, $mailOpen); }
/** * Add event triggers and actions * * @param WebhookBuilderEvent $event */ public function onWebhookBuild(WebhookBuilderEvent $event) { // add checkbox to the webhook form for new leads $newLead = array('label' => 'mautic.lead.webhook.event.lead.new', 'description' => 'mautic.lead.webhook.event.lead.new_desc'); // add it to the list $event->addEvent(LeadEvents::LEAD_POST_SAVE . '_new', $newLead); // checkbox for lead updates $updatedLead = array('label' => 'mautic.lead.webhook.event.lead.update', 'description' => 'mautic.lead.webhook.event.lead.update_desc'); // add it to the list $event->addEvent(LeadEvents::LEAD_POST_SAVE . '_update', $updatedLead); // add a checkbox for points $leadPoints = array('label' => 'mautic.lead.webhook.event.lead.points', 'description' => 'mautic.lead.webhook.event.lead.points_desc'); // add the points $event->addEvent(LeadEvents::LEAD_POINTS_CHANGE, $leadPoints); // lead deleted checkbox label & desc $leadDeleted = array('label' => 'mautic.lead.webhook.event.lead.deleted', 'description' => 'mautic.lead.webhook.event.lead.deleted_desc'); // add the deleted checkbox $event->addEvent(LeadEvents::LEAD_POST_DELETE, $leadDeleted); }