function media_gallery_view_access in Media Gallery 7.2
Same name and namespace in other branches
- 7 media_gallery.module \media_gallery_view_access()
Access callback for viewing parts of a node that are only relevant for media galleries.
1 call to media_gallery_view_access()
- media_gallery_view_item_access in ./
media_gallery.module - Access callback for viewing a media item in a gallery.
File
- ./
media_gallery.module, line 1486
Code
function media_gallery_view_access($node) {
if (!node_access('view', $node)) {
return FALSE;
}
if ($node->type == 'media_gallery') {
return TRUE;
}
}