Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
// 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
drupal_set_breadcrumb($breadcrumb);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment