API16

JPluginHelper/isEnabled

From Joomla! Documentation

< API16:JPluginHelper
Revision as of 17:36, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Checks if a plugin is enabled. <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

[Edit Descripton]

Template:Description:JPluginHelper/isEnabled

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

[Edit See Also] Template:SeeAlso:JPluginHelper/isEnabled

Examples[edit]

<CodeExamplesForm />