API16:JPluginHelper/isEnabled
From Joomla! Documentation
Description
Checks if a plugin is enabled.
Syntax
static isEnabled($type, $plugin=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $type | $type The plugin type, relates to the sub-directory in the plugins directory. | |
| $plugin | null | $plugin The plugin name. |
Returns
boolean
Defined in
libraries/joomla/plugin/helper.php
Importing
jimport( 'joomla.plugin.helper' );
Source Body
public static function isEnabled($type, $plugin = null)
{
$result = &self::getPlugin($type, $plugin);
return (!empty($result));
}
Examples
Code Examples