You are here

class crumbs_EntityPlugin_Field_UserReference in Crumbs, the Breadcrumbs suite 7.2

Hierarchy

Expanded class hierarchy of crumbs_EntityPlugin_Field_UserReference

File

lib/EntityPlugin/Field/UserReference.php, line 3

View source
class crumbs_EntityPlugin_Field_UserReference extends crumbs_EntityPlugin_Field_Abstract {

  /**
   * {@inheritdoc}
   */
  function fieldFindCandidate(array $items) {
    foreach ($items as $item) {
      if (1 && !empty($item['uid']) && ($target_user = user_load($item['uid'])) && ($uri = entity_uri('user', $target_user))) {
        return $uri['path'];
      }
    }
    return NULL;
  }

}

Members