Link to the Animals list in the farm asset breadcrumb.
This commit is contained in:
parent
363e1dc41e
commit
0a1fcceae6
|
@ -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().
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue