references:joomla.framework:application:jmodulehelper-isenabledisEnabled
Checks if a module is enabled Syntaxobject &isEnabled ( $module )
ExamplesExample 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. |


