Support Joomla!

references:joomla.framework:application:jmodulehelper-isenabled

Table of Contents

isEnabled

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Application Class JModuleHelper Method isEnabled Reference isEnabled() Never Work in Progress

Checks if a module is enabled

Syntax

object &isEnabled ( $module )

$module string The module name

Examples

Example

if ( JModuleHelper::isEnabled('banners') ) {
    $module = &JModuleHelper::getModule('banners');
    echo JModuleHelper::renderModule($module);
}

The above example would only render the content of the Banners module (mod_banners) if it is enabled or the user has sufficient rights to see it.


 
references/joomla.framework/application/jmodulehelper-isenabled.txt (448 views) · Last modified: 2007/08/15 14:49