public function NodeResourceFeedModelItem::getDescription in Services 7
Same name and namespace in other branches
- 6.3 servers/rest_server/includes/node_resource.models.inc \NodeResourceFeedModelItem::getDescription()
- 6.2 services/node_service/node_resource.models.inc \NodeResourceFeedModelItem::getDescription()
Calls node_build_content to create a teaser
File
- services/
node_service/ node_resource.models.inc, line 57
Class
Code
public function getDescription() {
if (!isset($this->node->content)) {
$this->node = node_build_content($this->node, TRUE, FALSE);
}
return $this->node->teaser;
}