You are here

public function UserActivityActionHandler::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

File

./activity_action_handlers.inc, line 785

Class

UserActivityActionHandler
Activity Action Handler for the user triggers.

Code

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