Пример #1
0
 function initialize(Zikula_Form_View $view)
 {
     $view->addPluginDir('system/Admin/Resources/views/plugins');
     // for Core 1.3.6+
     $view->addPluginDir('system/Admin/templates/plugins');
     // for Core 1.3.5
     $this->editor = $view->getPluginName();
     $classname = 'ModulePlugin_Scribite_' . $this->editor . '_Plugin';
     if (method_exists($classname, 'getOptions')) {
         $options = $classname::getOptions();
         if (!empty($options)) {
             $view->assign($options);
         }
     }
     $view->assign(ModUtil::getVar("moduleplugin.scribite." . strtolower($this->editor)));
     return true;
 }