function campaignmonitor_get_uid_from_email in Campaign Monitor 8
Parameters
$email:
Return value
mixed
3 calls to campaignmonitor_get_uid_from_email()
- campaignmonitor_local_campaignmonitor_subscribe in modules/
campaignmonitor_local/ campaignmonitor_local.module - Implements hook_campaignmonitor_subscribe().
- campaignmonitor_local_campaignmonitor_unsubscribe in modules/
campaignmonitor_local/ campaignmonitor_local.module - Implements hook_campaignmonitor_unsubscribe().
- campaignmonitor_registration_hold_campaignmonitor_registration_submit in modules/
campaignmonitor_registration_hold/ campaignmonitor_registration_hold.module
File
- ./
campaignmonitor.module, line 543 - Module that plugs in Campaign Monitor functionality to your Drupal web site. For Campaign Monitor information see: http://www.campaignmonitor.com/.
Code
function campaignmonitor_get_uid_from_email($email) {
return \Drupal::database()
->select('users_field_data', 'ufd')
->condition('ufd.mail', $email)
->fields('ufd', [
'uid',
])
->execute()
->fetchField();
}