API16

JPluginHelper/isEnabled

From Joomla! Documentation

< API16:JPluginHelper

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description[edit]

Checks if a plugin is enabled.



Syntax[edit]

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[edit]

boolean

Defined in[edit]

libraries/joomla/plugin/helper.php

Importing[edit]

jimport( 'joomla.plugin.helper' );

Source Body[edit]

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



Examples[edit]

Code Examples[edit]