You are here

function redhen_note_property_host_get in RedHen CRM 7

Callback to get $note->entity.

See also

redhen_note_entity_property_info().

1 string reference to 'redhen_note_property_host_get'
RedhenNoteMetadataController::entityPropertyInfo in modules/redhen_note/lib/redhen_note.metadata.inc
Extend to set property attributes for RedHen Notes.

File

modules/redhen_note/redhen_note.module, line 325
Redhen Notes main module

Code

function redhen_note_property_host_get(RedhenNote $note, array $options, $property_name, $entity_type) {
  $entity = entity_load_single($note->entity_type, $note->entity_id);
  return $entity ? entity_metadata_wrapper($note->entity_type, $entity) : NULL;
}