You are here

function easychart_wysiwyg_views_pre_render in Easychart 7.3

Implements of hook_views_pre_render().

File

modules/easychart_wysiwyg/easychart_wysiwyg.module, line 103
Easychart WYSIWYG integration.

Code

function easychart_wysiwyg_views_pre_render(&$view) {
  if ($view->name == 'easychart_plugin' && $view->current_display == 'page') {

    // suppress other interface elements.
    module_invoke_all('suppress');
    drupal_add_js("var oEditor = window.parent.CKEDITOR;\n      if (oEditor) {\n      var instance = oEditor.currentInstance;\n      var lang = oEditor.lang;\n      var config = oEditor.config;\n      }", 'inline');
    drupal_add_js(drupal_get_path('module', 'easychart_wysiwyg') . '/plugins/js/popup.js');
  }
}