function opigno_video_app_opigno_breadcrumbs in Opigno Video App 7
Implements hook_opigno_breadcrumbs().
File
- ./
opigno_video_app.module, line 65 - Module hooks.
Code
function opigno_video_app_opigno_breadcrumbs($gid) {
$breadcrumbs = array();
$node = menu_get_object();
// Must we handle this page request for the breadcrumb ?
if (isset($node->type) && $node->type == 'video' || current_path() == 'node/add/video' || preg_match('/^node\\/[0-9]+\\/sort-videos$/', current_path())) {
// Add the Opigno Videos view link.
$breadcrumbs[] = l(opigno_video_app_get_videos_view_title(), "node/{$gid}/videos");
}
if (!empty($breadcrumbs)) {
return $breadcrumbs;
}
}