Link to the Animals list in the farm asset breadcrumb.

This commit is contained in:
Michael Stenta 2015-04-13 17:03:52 -04:00
parent 363e1dc41e
commit 0a1fcceae6
1 changed files with 13 additions and 0 deletions

View File

@ -38,6 +38,19 @@ function farm_livestock_farm_admin_actions() {
return $actions;
}
/**
* Implements hook_farm_asset_breadcrumb().
*/
function farm_livestock_farm_asset_breadcrumb($farm_asset) {
// If the asset is an animal, add a link to the animals list.
$breadcrumb = array();
if ($farm_asset->type == 'animal') {
$breadcrumb[] = l(t('Animals'), 'farm/animals');
}
return $breadcrumb;
}
/**
* Implements hook_farm_asset_view_views().
*/