public static function get_user_device_type() {
        $device = self::get_device_type();
        $switched = get_user_preferences('switchdevice'.$device, false);
        if ($switched != false) {
            return $switched;
        }
        return $device;
    }
public static function get_user_device_type() {
        $device = self::get_device_type();
        $switched = get_user_preferences('switchdevice'.$device, false);
        if ($switched != false) {
            return $switched;
        }
        return $device;
    }
public static function get_user_device_type ( ) { $ device = self :: get_device_type ( ) ; $ switched = get_user_preferences ( 'switchdevice' . $ device , false ) ; if ( $ switched != false ) { return $ switched ; } return $ device ; }
Gets the device type the user is currently using.
@return string
Gets the device type the user is currently using .