public static function enabled($service)
    {
        $service = strtolower($service);

        return get_config_value('connect.'.$service.'_enable', true) && self::getConsumer($service)->isValid();
    }
public static function enabled($service)
    {
        $service = strtolower($service);

        return get_config_value('connect.'.$service.'_enable', true) && self::getConsumer($service)->isValid();
    }
public static function enabled ( $ service ) { $ service = strtolower ( $ service ) ; return get_config_value ( 'connect.' . $ service . '_enable' , true ) && self :: getConsumer ( $ service ) -> isValid ( ) ; }
Returns if a service is enabled.

@param string $service Service name

@return bool
Returns if a service is enabled .