You are here

function media_wysiwyg_permission in D7 Media 7.4

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

Implements hook_permission().

File

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

Code

function media_wysiwyg_permission() {
  return array(
    'use media wysiwyg' => array(
      'title' => t('Use Media WYSIWYG in an editor'),
      // Marked restrict because the WYSIWYG forms generate image derivatives,
      // which could lead to a DoS security vulnerability.
      'restrict access' => TRUE,
    ),
  );
}