/**
  * Add a simple email form
  *
  * @param FormBuilderEvent $event
  */
 public function onFormBuilder(Events\FormBuilderEvent $event)
 {
     // Register a form submit actions
     $event->addSubmitAction('mautic.extendedplugin.re.add', array('group' => 'mautic.lead.lead.submitaction', 'label' => 'mautic.extendedplugin.lead.remove.unsubscribe', 'description' => 'mautic.extendedplugin.lead.remove.unsubscribe.description', 'formType' => 'submitaction_re_add', 'callback' => '\\MauticPlugin\\MauticExtendedPluginBundle\\Helper\\FormSubmitHelper::onFormSubmit'));
     // Register a custom form field
     $event->addFormField('MauticExtendedPluginBundle.editor_advanced', array('label' => 'mautic.extendedplugin.formfield.editor.advanced', 'formType' => 'editor_advanced', 'type' => 'editor_advanced', 'template' => 'MauticExtendedPluginBundle:SubscribedEvents\\Field:editor_advanced.html.php'));
 }
Exemplo n.º 2
0
 /**
  * @param FormBuilderEvent $event
  */
 public function onFormBuild(FormBuilderEvent $event)
 {
     $action = ['label' => 'mautic.plugin.actions.socialLogin', 'formType' => 'sociallogin', 'template' => 'MauticSocialBundle:Integration:login.html.php', 'builderOptions' => ['addLeadFieldList' => false, 'addIsRequired' => false, 'addDefaultValue' => false, 'addSaveResult' => false]];
     $event->addFormField('plugin.loginSocial', $action);
 }