You are here

public function NodeActivityActionHandler::determineActor in Activity 7

Return the uid that is responsible for this action.

Parameters

array $objects: The objects used in tokenization

Return value

int

Overrides ActivityActionHandler::determineActor

1 method overrides NodeActivityActionHandler::determineActor()
CommentActivityActionHandler::determineActor in ./activity_action_handlers.inc
Return the uid that is responsible for this action.

File

./activity_action_handlers.inc, line 381

Class

NodeActivityActionHandler
Activity handler for node module.

Code

public function determineActor($objects) {
  if ($this->type == 'node_insert') {
    return $objects['node']->uid;
  }
  return $GLOBALS['user']->uid;
}