public static function SendinblueManager::getSubscriberByEmail in SendinBlue 7
Same name and namespace in other branches
- 7.2 includes/sendinblue.manage.inc \SendinblueManager::getSubscriberByEmail()
Get subscriber data by email on drupal table.
Parameters
string $email: An email address.
Return value
string A details of subscriber.
1 call to SendinblueManager::getSubscriberByEmail()
- 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 541 - Manage class file.
Class
- SendinblueManager
- Basic manager of module.
Code
public static function getSubscriberByEmail($email) {
$record = db_select('sendinblue_contact', 'c')
->fields('c')
->condition('c.email', $email, '=')
->execute()
->fetchAssoc();
return $record;
}