You are here

function entity_legal_get_properties in Entity Legal 7

Same name and namespace in other branches
  1. 7.2 entity_legal.module \entity_legal_get_properties()

Callback for getting legal entity properties.

1 string reference to 'entity_legal_get_properties'
entity_legal_entity_info_alter in ./entity_legal.module
Implements hook_entity_info_alter().

File

./entity_legal.module, line 161
Entity Legal module.

Code

function entity_legal_get_properties($entity, array $options, $name, $entity_type) {
  switch ($name) {
    case 'author':
      return !empty($entity->uid) ? $entity->uid : drupal_anonymous_user();
  }
}