function node_gallery_set_user_breadcrumb in Node Gallery 6.3
Set a Gallery breadcrumb for a given user ID.
Parameters
$uid: The user ID of the user the breadcrumb is relating to, such as the owner of the current Gallery node.
Return value
TRUE if the breadcrumb was set, or FALSE if the current user doesn't have access to any of the menu paths in the breadcrumb.
See also
4 calls to node_gallery_set_user_breadcrumb()
- node_gallery_manage_images_form in ./
node_gallery.pages.inc - Displays the content for our "Manage Images" tab, which is a VBO view.
- node_gallery_sort_images_form in ./
node_gallery.pages.inc - Form function for the "Sort Images" tab.
- node_gallery_upload_image_form in ./
node_gallery.pages.inc - Displays the content of the "Upload Images" tab.
- _node_gallery_gallery_view in ./
node_gallery.module - Attaches the gallery node's image view to the node's content.
File
- ./
node_gallery.module, line 1338 - Node gallery module file.
Code
function node_gallery_set_user_breadcrumb($uid, $node = NULL) {
$trail = array(
'galleries',
'galleries/' . $uid,
);
return node_gallery_set_breadcrumb($trail, $node);
}