function media_wysiwyg_permission in D7 Media 7.2
Same name and namespace in other branches
- 7.4 modules/media_wysiwyg/media_wysiwyg.module \media_wysiwyg_permission()
- 7.3 modules/media_wysiwyg/media_wysiwyg.module \media_wysiwyg_permission()
Implements hook_permission().
File
- modules/
media_wysiwyg/ media_wysiwyg.module, line 72 - 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,
),
);
}