You are here

class _taxonomy_CrumbsMultiPlugin_termReference_user in Crumbs, the Breadcrumbs suite 7

Hierarchy

Expanded class hierarchy of _taxonomy_CrumbsMultiPlugin_termReference_user

File

plugins/crumbs.taxonomy.inc, line 118

View source
class _taxonomy_CrumbsMultiPlugin_termReference_user extends _taxonomy_CrumbsMultiPlugin_termReference {
  protected $entityType = 'user';

  /**
   * Match "user/%" router path
   */
  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,
      );
    }
  }

}

Members