public function InviteController::buildContent in Invite 7.4
Parameters
Invite $entity:
string $view_mode:
null $langcode:
array $content:
Return value
mixed
Overrides EntityAPIController::buildContent
File
- includes/
invite.controller.inc, line 36
Class
Code
public function buildContent($entity, $view_mode = 'full', $langcode = NULL, $content = array()) {
$account = user_load($entity->uid);
$content['author'] = array(
'#prefix' => '<div>',
'#suffix' => '</div>',
'#markup' => t('Created by: <strong>!author</strong>', array(
'!author' => theme('username', array(
'account' => $account,
)),
)),
);
$content['status'] = array(
'#prefix' => '<div>',
'#suffix' => '</div>',
'#markup' => t('Status: <strong>!status</strong>', array(
'!status' => $entity
->status(TRUE),
)),
);
return parent::buildContent($entity, $view_mode, $langcode, $content);
}