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