You are here

function sendinblue_forms in SendinBlue 7

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

Implements hook_forms().

File

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

Code

function sendinblue_forms($form_id, $args) {
  $forms = array();
  if (strpos($form_id, 'sendinblue_') === 0 && isset($args[1])) {
    if ($args[1] == 'sendinblue_signup_page') {
      $forms['sendinblue_signup_subscribe_page_' . $args[0]->name . '_form'] = array(
        'callback' => 'sendinblue_signup_subscribe_form',
      );
    }
    if ($args[1] == 'sendinblue_signup_block') {
      $forms['sendinblue_signup_subscribe_block_' . $args[0]->name . '_form'] = array(
        'callback' => 'sendinblue_signup_subscribe_form',
      );
    }
  }
  return $forms;
}