By Jerimee on
I want my installation profile to set the default input format. What table is this setting stored in?
It does NOT seem to be stored in the filter_formats table...
I want my installation profile to set the default input format. What table is this setting stored in?
It does NOT seem to be stored in the filter_formats table...
Comments
variable
table is "variable", name is "filter_default_format"
I'm going to set up my installation profile to edit the variable table using db_query, but I suspect this is the wrong way to do it. What is the correct way?
filter_default_format s:1:"2";
Oops - I can't just update the variable since I don't know what the "s:1:" notation means...
Similarly I can't Insert the "site_offline_message" variable because I don't know how to deal with the "s:#:" prefix on the string. I've checked multiple site databases and each one uses a different 3 digit number after the "s:"
If you run across this post and can offer some help it's much appreciated.
variable_set
Use variable_set('filter_default_format', 'machine-readable-name-of-desired-input-filter')
Also see variable_get
Good. — Fast. — Cheap.
(Pick any two.)