Commit c9c60e1b authored by pifagor's avatar pifagor Committed by joseph.olstad

Issue #2834893 by pifagor: Fatal error: Unsupported operand types in media_wysiwyg.module

parent bcc32e4d
......@@ -552,11 +552,9 @@ function media_wysiwyg_file_displays_alter(&$displays, $file, $view_mode) {
* Add a file type named 'WYSIWYG'.
*/
function media_wysiwyg_entity_info_alter(&$entity_info) {
$entity_info['file']['view modes'] += array(
'wysiwyg' => array(
'label' => t('WYSIWYG'),
'custom settings' => TRUE,
),
$entity_info['file']['view modes']['wysiwyg'] = array(
'label' => t('WYSIWYG'),
'custom settings' => TRUE,
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment