Metainformationen zur Seite
LBSystem::is_disabled($text)
$bool = is_disabled($text);
Used for config parameters. Returns True if the $text contains a word that fuzzy could mean False.If the passed string contains one of these words:
false, no, off, disabled, disable, 0
The function will return True, otherwise False.
The keyword search is case insensitive.
This is not a inversion of is_enabled.
The intention of the is_disabled function is to query a config parameter for a feature that is normally enabled. If it is not explicitly disabled, you default to enable it.