Advertisement
Guest User

Untitled

a guest
Feb 28th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. /**
  2. * Implements theme_breadcrumb().
  3. */
  4. function theme_breadcrumb($variables) {
  5. // global variable
  6. $output = '';
  7. $breadcrumb = $variables['breadcrumb'];
  8. if (!empty($breadcrumb)) {
  9. $nid = arg(1);
  10. $node = node_load($nid);
  11. $output = '<ul class="breadcrumb">';
  12. if ($node->type == 'content_type') {
  13. $output .= '<li><a href="' . url() . '" rel="breadcrumb">' . $node->type . '</a></li>';
  14. }
  15. $output .= '<li class="active">'. drupal_get_title() .'</li>';
  16. $output .= '</ul>';
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement