You are here

public function HeartbeatActivity::save in Heartbeat 7

Same name and namespace in other branches
  1. 6.4 includes/heartbeatactivity.inc \HeartbeatActivity::save()
  2. 6.3 includes/heartbeatactivity.inc \HeartbeatActivity::save()

Public function to save activity to database

Parameters

array raw argument to enforce as is (pre-renderd):

File

includes/heartbeatactivity.inc, line 385
HeartbeatActivity object Defines one heartbeat activity object.

Class

HeartbeatActivity
Class defines an activity message object

Code

public function save($raw_args = array()) {
  if (!empty($this->nid)) {

    // if a user selected a language, then we follow i19n
    $node = node_load($this->nid);
    if (!empty($node->language)) {
      return $this
        ->_save($raw_args, $node->language);
    }
  }
  return $this
    ->_save($raw_args);
}