Hello,
I'm getting an error when attempting to Edit my layerslider slide:
PHP Fatal error: Call to undefined function media_include_browser_js() in modules/drupalexp/dexp_layerslider/dexp_layerslider.module on line 291
Currently using Version: 7.x-1.0-beta of Dexp LayerSlider
Media module 7.x-2.1
Any ideas?
Thanks!
© Copyright 2013-2017 DrupalExp - All Rights Reserved
Actually, I found a solution on a different post:
Comment:
include_once drupal_get_path('module', 'media') . '/wysiwyg_plugins/media.inc';
Add:
include_once drupal_get_path('module', 'media') '/modules/media_wysiwyg/wysiwyg_plugins/media.inc';
Comment:
media_include_browser_js();
Add:
drupal_add_library('media', 'media_browser');
drupal_add_library('media', 'media_browser_settings');
This
include_once drupal_get_path('module', 'media') '/modules/media_wysiwyg/wysiwyg_plugins/media.inc';
needs a point between drupal_get_path('module', 'media') and '/modules/media_wysiwyg/wysiwyg_plugins/media.inc';
include_once drupal_get_path('module', 'media') . '/modules/media_wysiwyg/wysiwyg_plugins/media.inc';
Thanks for the solution !