function _heartbeat_who_is_private_user in Heartbeat 6.3
Helper function to get the uid of the private heartbeat request
File
- ./
heartbeat.module, line 842
Code
function _heartbeat_who_is_private_user($op) {
// Check the requested user
switch ($op) {
case 'current':
global $user;
$uid = $user->uid;
break;
case 'argument':
$url_uid = args(1);
$uid = is_numeric($url_uid) ? $url_uid : 0;
break;
case 'all':
$uid = 0;
break;
default:
if (is_numeric($op)) {
$uid = $op;
}
}
return $uid;
}