API15

API15:JPluginHelper/isEnabled

From Joomla! Documentation

Revision as of 01:02, 25 March 2017 by JoomlaWikiBot (talk | contribs) (preparing for archive only)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Checks if a plugin is enabled

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax

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

function isEnabled( $type, $plugin = null )
{
        $result = &JPluginHelper::getPlugin( $type, $plugin);
        return (!empty($result));
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

Code Examples