You are here

function media_wysiwyg_access in D7 Media 7.2

Same name and namespace in other branches
  1. 7.4 modules/media_wysiwyg/media_wysiwyg.module \media_wysiwyg_access()
  2. 7.3 modules/media_wysiwyg/media_wysiwyg.module \media_wysiwyg_access()

Access callback for WYSIWYG Media.

1 string reference to 'media_wysiwyg_access'
media_wysiwyg_menu in modules/media_wysiwyg/media_wysiwyg.module
Implements hook_menu().

File

modules/media_wysiwyg/media_wysiwyg.module, line 86
Primarily Drupal hooks.

Code

function media_wysiwyg_access($op, $file = NULL, $account = NULL) {
  return user_access('use media wysiwyg', $account) && file_entity_access($op, $file, $account);
}