You are here

function asset_set_breadcrumb in Asset 5.2

Related topics

1 call to asset_set_breadcrumb()
asset_page_view in ./asset.module
Menu callback; view a single asset.

File

./asset.module, line 1049
Main module.

Code

function asset_set_breadcrumb($asset) {
  $breadcrumb = array();
  while ($pid = $asset->pid) {
    $asset = asset_load($pid);
    $breadcrumb[] = l($asset->title, 'asset/' . $asset->aid);
  }
  $breadcrumb[] = l(t('Assets'), 'asset');
  drupal_set_breadcrumb(array_reverse($breadcrumb));
}