You are here

protected function SearchApiAlterCommentAccess::getNode in Search API 7

Overrides SearchApiAlterNodeAccess::getNode().

Returns the comment's node, instead of the item (i.e., the comment) itself.

Overrides SearchApiAlterNodeAccess::getNode

File

includes/callback_comment_access.inc, line 26
Contains the SearchApiAlterCommentAccess class.

Class

SearchApiAlterCommentAccess
Adds node access information to comment indexes.

Code

protected function getNode($item) {
  return node_load($item->nid);
}