Actions

API15

JPluginHelper/isEnabled

From Joomla! Documentation

< API15:JPluginHelper
Revision as of 17:10, 22 March 2010 by Doxiki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Contents

Description

Checks if a plugin is enabled

[Edit Descripton]

Description:JPluginHelper/isEnabled

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));
}

[Edit See Also] SeeAlso:JPluginHelper/isEnabled

Examples

<CodeExamplesForm />