You are here

function advuser_profile_value in Advanced User 6.2

Same name and namespace in other branches
  1. 5.2 advuser.module \advuser_profile_value()
  2. 6.3 advuser.module \advuser_profile_value()
  3. 7.3 advuser.module \advuser_profile_value()

Profile Field Values

Parameters

int $fid:

int $uid:

Return value

mixed

File

./advuser.module, line 726
Advanced user module allows you to select users based on an advanced set of filtering and apply actions to block, unblock, delete or email the selected users.

Code

function advuser_profile_value($fid, $uid) {
  $ret = db_result(db_query("SELECT value FROM {profile_values} WHERE fid = %d and uid = %d", $fid, $uid));
  if ($ret === FALSE) {
    $ret = NULL;
  }
  return $ret;
}