function media_wysiwyg_entity_info_alter in D7 Media 7.4
Same name and namespace in other branches
- 7.2 modules/media_wysiwyg/media_wysiwyg.module \media_wysiwyg_entity_info_alter()
- 7.3 modules/media_wysiwyg/media_wysiwyg.module \media_wysiwyg_entity_info_alter()
Implements hook_entity_info_alter().
Add a file type named 'WYSIWYG'.
File
- modules/
media_wysiwyg/ media_wysiwyg.module, line 662 - Primarily Drupal hooks.
Code
function media_wysiwyg_entity_info_alter(&$entity_info) {
$entity_info['file']['view modes']['wysiwyg'] = array(
'label' => t('WYSIWYG'),
'custom settings' => TRUE,
);
}