While attempting to set the "message_blocknoncontacts" preference default in Moodle code, it occured to me that default values for preferences are hard-coded whenever get_user_preferences is called (The function is defined on line 1024 in lib/moodlelib.php for reference). What I'd like to see, is the gradual move away from hard-coded preferences, and instead using a "config" file which contains the preference defaults. For example, calling get_user_preferences could look like this:
instead of this:
I think a few people would find this VERY handy, because there are times when you want to change default Moodle options but need to hunt around for it. Plus it could pave the way for integrating this into the Roles system or the general site config or something like that.