You are here

public static function SendinblueManager::addSubscriberTable in SendinBlue 7

Same name and namespace in other branches
  1. 7.2 includes/sendinblue.manage.inc \SendinblueManager::addSubscriberTable()

Add subscriber on drupal table.

Parameters

array $data: A data to add in table.

1 call to SendinblueManager::addSubscriberTable()
sendinblue_signup_subscribe_form_validate in ./sendinblue.module
Validate handler to add users to lists on subscription form submission.

File

includes/sendinblue.manage.inc, line 552
Manage class file.

Class

SendinblueManager
Basic manager of module.

Code

public static function addSubscriberTable($data = array()) {
  db_insert('sendinblue_contact')
    ->fields(array(
    'email' => $data['email'],
    'info' => $data['info'],
    'code' => $data['code'],
    'is_active' => $data['is_active'],
  ))
    ->execute();
}