Pass $context to 'GetPreferences' hook