Skip to content

Instantly share code, notes, and snippets.

@yann-yinn
Created December 5, 2016 18:56
Show Gist options
  • Save yann-yinn/a5fa841bb83eeaa8747db4644d8c68c7 to your computer and use it in GitHub Desktop.
Save yann-yinn/a5fa841bb83eeaa8747db4644d8c68c7 to your computer and use it in GitHub Desktop.
<?php
function HOOK_preprocess_page(&$variables) {
if (menu_get_object()->type == 'temoignage') {
drupal_set_breadcrumb([
l('Home', '<front>'),
l('Tous les témoignages', 'tous-les-temoignages')
]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment