function mlpanels_panels_renderer_editor::init in Multilingual Panels 7
Receive and store the display object to be rendered.
This is a psuedo-constructor that should typically be called immediately after object construction.
Overrides panels_renderer_standard::init
File
- ./
mlpanels_panels_renderer_editor.class.php, line 23 - Class file to control the main Panels editor.
Class
- mlpanels_panels_renderer_editor
- Editor panel class replacement.
Code
function init($plugin, &$display) {
drupal_add_css(drupal_get_path('module', 'mlpanels') . '/' . MLPANELS_RENDERER_EDITOR_CLASS . '.css');
drupal_add_js(drupal_get_path('module', 'mlpanels') . '/' . MLPANELS_RENDERER_EDITOR_CLASS . '.js');
// Pass settings.
drupal_add_js(array(
'mlpanels' => _mlpanels_settings(),
), 'setting');
return parent::init($plugin, $display);
}