Actions

API16

JModuleHelper/isEnabled

< API16:JModuleHelper

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 module is enabled



Syntax

static isEnabled($module)
Parameter Name Default Value Description
$module The module name

Returns

boolean

Defined in

libraries/joomla/application/module/helper.php

Importing

jimport( 'joomla.application.module.helper' );

Source Body

public static function isEnabled($module)
{
        $result = &JModuleHelper::getModule($module);
        return (!is_null($result));
}



Examples

Code Examples


Advertisement