You are here

public function CommentActivityActionHandler::loadObjects in Activity 7

Load objects for tokenization.

Parameters

int $eid: * The entity identifier for this Activity.

Return value

array

Overrides NodeActivityActionHandler::loadObjects

File

./activity_action_handlers.inc, line 597

Class

CommentActivityActionHandler
Activity handler for the comment module. Extends the node handler has it presents a lot of the same things, just more.

Code

public function loadObjects($eid) {
  $objects = array();
  $objects['comment'] = comment_load($eid);
  $objects['node'] = node_load($objects['comment']->nid);
  return $objects;
}