public function PublicHeartbeat::addViewQuery in Heartbeat 6.4
Function to add a part of a sql to a query built by views.
Parameters
object $view: The view handler object by reference to add our part to the query
Overrides HeartbeatAccess::addViewQuery
File
- includes/
publicheartbeat.inc, line 38
Class
- PublicHeartbeat
- Class PublicHeartbeat Concrete class to prepare messages for all users in the site of whom the heartbeat is set to public
Code
public function addViewQuery(&$view) {
// Make the sql limited to the access
$view->query
->add_where('andgroup', "{$view->table_alias}.access > 0");
}