protected function RedhenNote::defaultUri in RedHen CRM 7
Specifify URI
Overrides Entity::defaultUri
File
- modules/
redhen_note/ lib/ redhen_note.entity.inc, line 88 - Redhen Group entity classes
Class
- RedhenNote
- The class used for note entities.
Code
protected function defaultUri() {
switch ($this->entity_type) {
case 'redhen_contact':
$path = 'contact';
break;
case 'redhen_org':
$path = 'org';
break;
}
return array(
'path' => 'redhen/' . $path . '/' . $this->entity_id . '/note/' . $this->note_id . '/view',
);
}