function _sf_entity_export_author_email in Salesforce Suite 7.2
1 string reference to '_sf_entity_export_author_email'
- sf_entity_fieldmap_objects in sf_entity/
sf_entity.module
File
- sf_entity/
sf_entity.module, line 1361 - Integrates fieldable entities with the Salesforce API.
Code
function _sf_entity_export_author_email($entity, $fieldname, $drupal_field_definition, $sf_field_definition) {
$uid = $entity->uid;
if (!is_numeric($uid)) {
return NULL;
}
return db_query('SELECT mail FROM {users} WHERE uid = :uid', array(
'uid' => $uid,
))
->fetchField();
}