function advuser_profile_value in Advanced User 7.3
Same name and namespace in other branches
- 5.2 advuser.module \advuser_profile_value()
- 6.3 advuser.module \advuser_profile_value()
- 6.2 advuser.module \advuser_profile_value()
Profile Field Values
Parameters
int $fid:
int $uid:
Return value
mixed
File
- ./
advuser.module, line 441 - 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_select('profile_value', 'pv')
->fields('pv', array(
'value',
))
->condition('pv.fid', $fid, '=')
->condition('pv.uid', $uid, '=')
->execute()
->fetchField();
if ($ret === FALSE) {
$ret = NULL;
}
return $ret;
}