You are here

function media_gallery_edit_access in Media Gallery 7

Same name and namespace in other branches
  1. 7.2 media_gallery.module \media_gallery_edit_access()

Access callback for editing parts of a node that are only relevant for media galleries.

2 calls to media_gallery_edit_access()
media_gallery_multiedit_access in ./media_gallery.module
Access callback for editing parts of a node that are only relevant for media galleries.
media_gallery_remove_item_access in ./media_gallery.module
Access callback for removing a media item from a gallery.

File

./media_gallery.module, line 1463

Code

function media_gallery_edit_access($node) {
  if (!node_access('update', $node)) {
    return FALSE;
  }
  if ($node->type == 'media_gallery') {
    return TRUE;
  }
}