You are here

function _sf_node_export_author_email in Salesforce Suite 7

Same name and namespace in other branches
  1. 6.2 sf_node/sf_node.module \_sf_node_export_author_email()

File

sf_entity/sf_entity.module, line 400
Integrates fieldable entities 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));
}