TRUE,
'created_time_lower' => $last_reload,
'wheres' => array('e.type != \'user\'')
));
if(!$entity_creation)
$entity_creation = 0;
//grab any entities updated
$entity_update = elgg_get_entities(array(
'count' => TRUE,
'modified_time_lower' => $last_reload,
'wheres' => array('e.type != \'user\'')
));
if(!$entity_update)
$entity_update = 0;
//get any relationships, such as friending - this is not working quite right yet
//$relationship_action = elgg_get_entities_from_relationship(array('count' => TRUE));
//if(!$relationship_action)
// $relationship_action = 0;
//sum all totals
$all_activity = $annotations + $entity_creation + $entity_update;
if ($all_activity > 0) {
$s = ($all_activity == 1) ? '' : 's';
echo "$all_activity update$s!";
//echo "";
?>