add include_plugin function for optoinal plugins

pull/212/head
JohnDoh 10 years ago
parent 0b799bee90
commit 4eee212883

@ -120,6 +120,17 @@ abstract class rcube_plugin
return $this->api->load_plugin($plugin_name, true);
}
/**
* Attempt to load the given plugin which is optional for the current plugin
*
* @param string Plugin name
* @return boolean True on success, false on failure
*/
public function include_plugin($plugin_name)
{
return $this->api->load_plugin($plugin_name, true, false);
}
/**
* Load local config file from plugins directory.
* The loaded values are patched over the global configuration.

Loading…
Cancel
Save