function _tmgmt_ui_breadcrumb in Translation Management Tool 7
Helper function for appending the parent job path to the breadcrumb of a job item menu path.
1 call to _tmgmt_ui_breadcrumb()
- tmgmt_ui_job_item_view in ui/
includes/ tmgmt_ui.pages.inc - Simple page callback for viewing a job item.
File
- ui/
includes/ tmgmt_ui.pages.inc, line 1053 - Provides page callbacks and form functions for the Translation Management Tool User Interface module.
Code
function _tmgmt_ui_breadcrumb(TMGMTJobItem $item) {
$breadcrumb = drupal_get_breadcrumb();
$menu = menu_get_item('admin/tmgmt/jobs/' . $item->tjid);
$breadcrumb[] = l($menu['title'], 'admin/tmgmt/jobs/' . $item->tjid);
drupal_set_breadcrumb($breadcrumb);
}