You are here

protected function RedhenOrg::defaultLabel in RedHen CRM 7

Specifies the default label, which is picked up by label() by default.

Overrides Entity::defaultLabel

File

modules/redhen_org/lib/redhen_org.entity.inc, line 112
Redhen Group entity classes

Class

RedhenOrg
The class used for group entities.

Code

protected function defaultLabel() {
  $type = redhen_org_get_types($this->type);
  return $this->label . ' (' . $type->label . ')';
}