You are here

function _salesforce_user_ids in Salesforce Suite 5

1 call to _salesforce_user_ids()
salesforce_user in ./salesforce.module
Implementation of hook_user().

File

./salesforce.module, line 611
Original Creator, Maintainer & Developer: Steve McKenzie (http://drupal.org/user/45890) Drupal and Salesforce.com (mainly only working with contacts / leads but can be extended to do anything the salesforce API version 6 can do) Current…

Code

function _salesforce_user_ids($account = NULL) {
  $account = _salesforce_select_account($account);
  $result = db_query("SELECT lead_id, contact_id, opp_id, account_id FROM {salesforce_users} WHERE uid = %d", $account->uid);
  if (db_num_rows($result) > 0) {
    return db_fetch_array($result);
  }
}