function flag_entity::_load_content in Flag 7.2
Loads the entity object.
File
- ./
flag.inc, line 1387 - Implements various flags. Uses object oriented style inspired by that of Views 2.
Class
- flag_entity
- Base entity flag handler.
Code
function _load_content($content_id) {
if (is_numeric($content_id)) {
$entity = entity_load($this->content_type, array(
$content_id,
));
return reset($entity);
}
return NULL;
}