Old style global $user no longer work.
Porting config — variable_get() to config object.