You are here

function hosting_get_client_by_email in Hosting 5

1 call to hosting_get_client_by_email()
hosting_import_client in client/hosting_client.module
Helper function to generate new client node during import

File

client/hosting_client.module, line 86

Code

function hosting_get_client_by_email($email) {
  $result = db_result(db_query("SELECT c.nid FROM {hosting_client} c INNER JOIN {node} n ON n.nid = c.nid WHERE c.email = '%s'", $email));
  if ($result) {
    return node_load($result);
  }
  return false;
}