SHARE
TWEET

Views breadcrumb

csakiistvan Nov 11th, 2011 118 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. global $base_url;
  3. global $language;
  4. if($language->language == 'en') {
  5.         $breadcrumb[] = l(t('Home'), null);
  6.         $breadcrumb[] .= l(t('Gallery'), 'gallery');
  7.         $breadcrumb[] .= l(t('Photos'), 'photos');
  8.         $breadcrumb[] .= l(drupal_get_title(), $base_url.$_SERVER['REQUEST_URI']);
  9.         drupal_set_breadcrumb($breadcrumb);
  10. }
  11. else {
  12.         $breadcrumb[] = l(t('Címlap'), null);
  13.         $breadcrumb[] .= l(t('Galéria'), 'galeria');
  14.         $breadcrumb[] .= l(t('Fotók'), 'fotok');
  15.         $breadcrumb[] .= l(drupal_get_title(), $base_url.$_SERVER['REQUEST_URI']);
  16.         drupal_set_breadcrumb($breadcrumb);
  17. }
  18. ?>
  19.  
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top