I have some site metadata that I would like to change ... for example, in my application, if the system administrator did not want to use the "Inventory" part on the site, he can disable it and it will disappear from the main site.
So, I was thinking, maybe I could make a table in my database called "meta" and insert the values (or tuples) there! Then, if the module was disabled, the script will update the line and set "module x" to 0, and I would do with it, right?
Also, this seems like an awful lot of overhead (creating an entire table and saving it, etc.) just for a set of values ... Basically, my solution sounds like dragging a square anchor into a round slot.
A quick look at the drupal database gave nothing, and I assume that they use the configuration file on the server itself? If so, I don’t know exactly how saved values in a .cfg file (for example) can be read by a web application, and I don’t know how such an application can save information to a file. I would appreciate your understanding if you solved this problem earlier.
I use primarily PHP, by the way.
Thanks in advance!
Julian H. Lam
source share