You are here

function scald_aid_to_uid in Scald: Media Management made easy 6

Determine the User that corresponds to an Author ID.

Parameters

$aid: The Scald Author ID of the Author in question

The Drupal User ID of the user who is registered as the Author with $aid.: FALSE upon failure.

File

./scald.module, line 1813

Code

function scald_aid_to_uid($aid) {
  return db_result(db_query("SELECT uid FROM {scald_authors} WHERE aid = %d", $aid));
}