public function MerciInventoryEntity::buildContent in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3
Override buildContent() to add the username to the output.
Overrides Entity::buildContent
File
- merci_inventory/
merci_inventory.module, line 192
Class
- MerciInventoryEntity
- Main class for test entities.
Code
public function buildContent($view_mode = 'full', $langcode = NULL) {
$content['user'] = array(
'#markup' => "User: " . format_username(user_load($this->uid)),
);
return entity_get_controller($this->entityType)
->buildContent($this, $view_mode, $langcode, $content);
}