You are here

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

Match "user/%" router path

File

plugins/crumbs.taxonomy.inc, line 125

Class

_taxonomy_CrumbsMultiPlugin_termReference_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) {

    // TODO: Is 'user' the correct bundle name?
    return array(
      'user' => $parent_path,
    );
  }
}