You are here

protected function Invite::defaultLabel in Invite 7.4

Defines the entity label if the 'entity_class_label' callback is used.

Specify 'entity_class_label' as 'label callback' in hook_entity_info() to let the entity label point to this method. Override this in order to implement a custom default label.

Overrides Entity::defaultLabel

File

includes/invite.controller.inc, line 200

Class

Invite
Invite class.

Code

protected function defaultLabel() {
  $entity = entity_metadata_wrapper('invite', $this);
  return t('Invitation #@number', array(
    '@number' => $this
      ->identifier(),
  ));
}