====== isEnabled ======
{#JAPI Joomla.Framework Application JComponentHelper::isEnabled #}
Checks if the component is enabled.
This method returns true if the component is enabled, false otherwise. Extensions are enabled and disabled using the Extension Manager.
===== Syntax =====
boolean isEnabled ( **$name** )
| **$name** | string | is a string containing the option value for the component. |
===== Examples =====
if (JComponentHelper::isEnabled( 'com_weblinks' )) {
echo 'The weblinks component is enabled.';
} else {
echo 'The component is disabled.';
}
might produce
The weblinks component is enabled.
----
~~DISCUSSION~~