function visitors_hit_details_get_data in Visitors 7.2
Get hit details data from visitors table.
Parameters
visitors_id: int visitors id
Return value
stdObject
1 call to visitors_hit_details_get_data()
- visitors_hit_details in reports/
hit_details.inc - Menu callback; Displays recent page accesses.
File
- reports/
hit_details.inc, line 82 - Hit details report for the visitors module.
Code
function visitors_hit_details_get_data($visitors_id) {
$query = db_select('visitors', 'v');
$query
->leftJoin('users', 'u', 'u.uid=v.visitors_uid');
$query
->fields('v');
$query
->fields('u', array(
'name',
'uid',
));
$query
->condition('v.visitors_id', (int) $visitors_id);
return $query
->execute()
->fetch();
}