Where does $PAGE->theme->settings stored in the database?

Where does $PAGE->theme->settings stored in the database?

by John Lu -
Number of replies: 2

Hi,

I was wondering where does the serialized custom theme settings instance (PAGE->theme->settings) stored in the database?

I have created several custom settings but now I want to remove them, how do I do this? (I want to remove testing1,2,3 below)

stdClass Object
(
    [testing1] => Te
    [testing2] => 0
    [testing3] => 
    [headerwidth] => 150
    [headerheight] => 150
    [version] => 2016071500
)

Thanks

Average of ratings: -
In reply to John Lu

Re: Where does $PAGE->theme->settings stored in the database?

by Dimitar Ivanov -

There is unset_config() function that you can use: https://github.com/moodle/moodle/blob/master/lib/moodlelib.php#L1513

If you look at the code, you will see that it deletes the entries from a table called config_plugins

In reply to Dimitar Ivanov

Re: Where does $PAGE->theme->settings stored in the database?

by John Lu -

Thanks! I thought they were serialized apparently not!