Hi all,
I'm creating a child theme from Boost.
I would like to have some user preferences so that each user can choose the primary color.
So I modified the theme_boost_get_pre_scss($theme) function and added at the beginning :
global $USER, $DB;
$user = $DB->get_record('user', array('id' => $USER->id));
But $USER->id equals 0.
Is $USER available in all functions ?
This function is in my theme's lib.php file. In this lib.php file there is another function that uses $USER without problems.
Best,
Alain