You are here

public function RedhenNote::label in RedHen CRM 7

Override label() to add note label.

Overrides Entity::label

File

modules/redhen_note/lib/redhen_note.entity.inc, line 67
Redhen Group entity classes

Class

RedhenNote
The class used for note entities.

Code

public function label() {
  $wrapper = entity_metadata_wrapper('redhen_note', $this);
  $entity = $wrapper->entity
    ->value();

  // Don't sanitize here as this function should produce unsanitized output.
  return t('Note !id on !label', array(
    '!id' => $this->note_id,
    '!label' => entity_label($wrapper->entity_type
      ->value(), $wrapper->entity),
  ));
}