API16

JPluginHelper/isEnabled

< 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

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


Advertisement