You are here

function sendinblue_signup_subscribe_form_submit in SendinBlue 7

Same name and namespace in other branches
  1. 7.2 sendinblue.module \sendinblue_signup_subscribe_form_submit()

Submit handler to add users to lists on subscription form submission.

File

./sendinblue.module, line 401
The entry point of Sendinblue module.

Code

function sendinblue_signup_subscribe_form_submit($form, &$form_state) {
  $signup = reset($form_state['build_info']['args']);
  drupal_set_message(check_plain($signup->settings['subscription']['messages']['success']));
  if ($signup->settings['subscription']['settings']['redirect_url'] != '') {
    $form_state['redirect'] = $signup->settings['subscription']['settings']['redirect_url'];
  }
}