API17:JPluginHelper::importPlugin
From Joomla! Documentation
JPluginHelper::importPlugin
Description
Loads all the plugin files for a particular type if no specific plugin is specified otherwise only the specific pugin is loaded.
public static function importPlugin (
$type
$plugin=null
$autocreate=true
$dispatcher=null
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $type | string | The plugin type, relates to the sub-directory in the plugins directory. | |
| $plugin | string | null | The plugin name. |
| $autocreate | boolean | true | |
| $dispatcher | null | Optionally allows the plugin to use a different dispatcher. |
- Returns boolean True on success.
- Defined on line 85 of libraries/joomla/plugin/helper.php
- Since

- Referenced by
- JAuthentication::__construct
- JEditor::_loadEditor
- JUser::delete
- JModelAdmin::delete
- JApplication::dispatch
- JEditor::getButtons
- JUserHelper::getProfile
- JApplication::initialise
- JInstaller::install
- JHtmlContent::prepare
- JModelForm::preprocessForm
- JModelAdmin::publish
- JApplication::render
- JApplication::route
- JUser::save
- JModelAdmin::save
- JInstaller::uninstall
- JInstaller::update
See also
JPluginHelper::importPlugin source code on BitBucket
Class JPluginHelper
Subpackage Plugin- Other versions of JPluginHelper::importPlugin
User contributed notes
Code Examples