function _sf_node_export_author_email in Salesforce Suite 6.2
Same name and namespace in other branches
- 7 sf_entity/sf_entity.module \_sf_node_export_author_email()
1 string reference to '_sf_node_export_author_email'
- sf_node_fieldmap_objects in sf_node/
sf_node.module - Implementation of hook_fieldmap_objects_alter().
File
- sf_node/
sf_node.module, line 335 - Integrates the core node object and various node related modules with the Salesforce API.
Code
function _sf_node_export_author_email($node, $fieldname, $drupal_field_definition, $sf_field_definition) {
$uid = $node->uid;
if (!is_numeric($uid)) {
return NULL;
}
return db_result(db_query('SELECT mail FROM {users} WHERE uid = %d', $uid));
}