You are here

function _heartbeat_activity_load in Heartbeat 7

Function to load one activity message.

1 call to _heartbeat_activity_load()
HeartbeatMessagePool::getMessage in ./heartbeat.module
getMessage().

File

./heartbeat.module, line 1020
Module file for heartbeat activity. Basic hook implementations and helper functions will be found here.

Code

function _heartbeat_activity_load($uaid) {
  if (is_numeric($uaid)) {
    $activities = heartbeat_activity_load_multiple(array(
      $uaid,
    ), array());
    return $activities ? $activities[$uaid] : $activities;
  }
  return FALSE;
}