You are here

function lightbox2_acidfree_video_access in Lightbox2 6

Acidfree video access control.

1 string reference to 'lightbox2_acidfree_video_access'
lightbox2_menu in ./lightbox2.module
Implementation of hook_menu().

File

./lightbox2.module, line 251
Enables the use of lightbox2 which places images above your current page, not within. This frees you from the constraints of the layout, particularly column widths.

Code

function lightbox2_acidfree_video_access($node) {
  if (user_access('play video') && node_access('view', $node)) {
    return TRUE;
  }
  return FALSE;
}