public static function is_enabled($component, $itemtype) {
        global $CFG;
        if (empty($CFG->usetags)) {
            return false;
        }
        $itemtypes = self::get_areas();
        if (isset($itemtypes[$itemtype][$component])) {
            return $itemtypes[$itemtype][$component]->enabled ? true : false;
        }
        return null;
    }
public static function is_enabled($component, $itemtype) {
        global $CFG;
        if (empty($CFG->usetags)) {
            return false;
        }
        $itemtypes = self::get_areas();
        if (isset($itemtypes[$itemtype][$component])) {
            return $itemtypes[$itemtype][$component]->enabled ? true : false;
        }
        return null;
    }
public static function is_enabled ( $ component , $ itemtype ) { global $ CFG ; if ( empty ( $ CFG -> usetags ) ) { return false ; } $ itemtypes = self :: get_areas ( ) ; if ( isset ( $ itemtypes [ $ itemtype ] [ $ component ] ) ) { return $ itemtypes [ $ itemtype ] [ $ component ] -> enabled ? true : false ; } return null ; }
Returns whether the tag area is enabled

@param string $component component responsible for tagging
@param string $itemtype what is being tagged, for example, 'post', 'course', 'user', etc.
@return bool|null
Returns whether the tag area is enabled