Aleksander Machniak
2013-03-27 395b74051ce974ced8a5abe378f66e9bcf0c8e34
program/include/rcube_plugin_api.php
@@ -32,6 +32,7 @@
  public $url = 'plugins/';
  public $output;
  public $config;
  public $allowed_prefs = array();
  
  public $handlers = array();
  private $plugins = array();
@@ -181,6 +182,9 @@
          ) {
            $plugin->init();
            $this->plugins[$plugin_name] = $plugin;
          }
          if (!empty($plugin->allowed_prefs)) {
            $this->allowed_prefs = array_merge($this->allowed_prefs, $plugin->allowed_prefs);
          }
          return true;
        }
@@ -422,6 +426,17 @@
  /**
   * Returns list of loaded plugins names
   *
   * @return array List of plugin names
   */
  public function loaded_plugins()
  {
    return array_keys($this->plugins);
  }
  /**
   * Callback for template_container hooks
   *
   * @param array $attrib