You are here

function easychart_views_pre_render in Easychart 7

Same name and namespace in other branches
  1. 7.2 easychart.module \easychart_views_pre_render()

Implements of hook_views_pre_render().

File

./easychart.module, line 451
Easy Chart module file.

Code

function easychart_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') . '/plugins/js/popup.js');
  }
}