Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// Build the breadcrumbs in the format Home > News > Title Of Post
$breadcrumb = array();
$breadcrumb[] = l(t('Home'), '<front>');
$breadcrumb[] = l(t('News'), 'news');
$breadcrumb[] = l(drupal_get_title(), base_path() . request_uri()); // Link to current URL
// Set the breadcrumbs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment