function _photos_breadcrumb in Album Photos 7.3
Same name and namespace in other branches
- 6.2 photos.module \_photos_breadcrumb()
Sets breadcrumb.
6 calls to _photos_breadcrumb()
- photos_album_page in inc/
photos.album.inc - Album view.
- photos_album_slide in inc/
photos.album.inc - Album slide show.
- photos_image_page in inc/
photos.image.inc - Image page.
- photos_page_album in inc/
photos.page.inc - Album photos page.
- photos_page_image in inc/
photos.page.inc - Latest images page.
File
- ./
photos.module, line 2317 - Implementation of photos.module.
Code
function _photos_breadcrumb($v = array()) {
if ($v) {
$b[] = l(t('Home'), NULL);
foreach ($v as $t) {
$b[] = $t;
}
}
else {
foreach (drupal_get_breadcrumb() as $t) {
$b[] = $t;
}
$b[] = drupal_get_title();
}
return drupal_set_breadcrumb($b);
}