You are here

public function UserActivityActionHandler::isPublished in Activity 7

Return whether or not the Activity is published.

Parameters

array $objects: The objects used in tokenization.

int $actor: The actor for this activity.

Overrides ActivityActionHandler::isPublished

File

./activity_action_handlers.inc, line 815

Class

UserActivityActionHandler
Activity Action Handler for the user triggers.

Code

public function isPublished($objects, $actor) {
  $user_active = $objects['user']->status == 1;
  if ($this->type != 'user_insert') {
    return $user_active && parent::isPublished($objects, $actor);
  }
  return $user_active;
}