You are here

function _entityreference_CrumbsMultiPlugin_user::findParent__user_x in Crumbs, the Breadcrumbs suite 7

Match "user/%" router path

File

plugins/crumbs.entityreference.inc, line 93

Class

_entityreference_CrumbsMultiPlugin_user

Code

function findParent__user_x($path, $item) {
  $user = $item['map'][1];

  // Load the user if it hasn't been loaded due to a missing wildcard loader.
  $user = is_numeric($user) ? user_load($user) : $user;
  $parent_path = $this
    ->_findParentPath($user);
  if ($parent_path) {
    return array(
      'user' => $parent_path,
    );
  }
}