public function NodeActivityActionHandler::determineTimestamp in Activity 7
Return the timestamp that this Activity happened at.
Parameters
array $objects: The objects used in tokenization.
Return value
int
Overrides ActivityActionHandler::determineTimestamp
1 method overrides NodeActivityActionHandler::determineTimestamp()
- CommentActivityActionHandler::determineTimestamp in ./
activity_action_handlers.inc - Return the timestamp that this Activity happened at.
File
- ./
activity_action_handlers.inc, line 396
Class
- NodeActivityActionHandler
- Activity handler for node module.
Code
public function determineTimestamp($objects) {
if ($this->type == 'node_insert') {
return $objects['node']->created;
}
return REQUEST_TIME;
}