[drupal-devel] forms should reflect settings.php hardcodes
Yet another minor issue, that can lead to Mayr annoyances. when a setting is set in settings.php, for example the site slogan, one can still set that slogan in admin/settings. That is strange, and very confusing. A 'hosting provider' such as BygHost, might choose to set harcoded footers 'supported by BygHost'. Users will be very confused why they changed theyr footer, yet the site does not change it. The field of any setting that is harcoded should best dissapear, or otherwise be greyed out. Is that possible with the form API? Ber
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 27 Sep 2005, at 11:05 AM, Bèr Kessels wrote:
Is that possible with the form API?
Yes. It's part of the design. I have a patch in the queue which extends the overriding mechanism, and also adds a way to change the defaults (which is neccesary for install profiles). Unfortunately I just don't have any "Drupal Time" right now,but I will hopefully have again later this week. - - -- Adrian Rossouw Drupal developer and Bryght Guy http://drupal.org | http://bryght.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iD8DBQFDOU0HgegMqdGlkasRAmiQAKDczki491JsZiF70zUjcPwc1ShR6gCg4VCa Oe26mwUwHy6LCRpAlClW0Ag= =ZweF -----END PGP SIGNATURE-----
On 9/27/05, Bèr Kessels <berdrupal@tiscali.be> wrote:
Yet another minor issue, that can lead to Mayr annoyances. when a setting is set in settings.php, for example the site slogan, one can still set that slogan in admin/settings. That is strange, and very confusing. A 'hosting provider' such as BygHost, might choose to set harcoded footers 'supported by BygHost'. Users will be very confused why they changed theyr footer, yet the site does not change it.
The field of any setting that is harcoded should best dissapear, or otherwise be greyed out.
Is that possible with the form API?
I would go one further and suggest that the settings.php file should be modifiable from a form. I recently set up Gallery2 to play with and was impressed that the entire configuration was done with a web form. Perhaps the original gallery had this as well and I don't remember it. I guess this is off-topic however. There would probably be an install.php which could update the settings.php but admin pages would still have to grey out options set there.
I would go one further and suggest that the settings.php file should be modifiable from a form. I recently set up Gallery2 to play with and was impressed that the entire configuration was done with a web form. Perhaps the original gallery had this as well and I don't remember it.
Oh, horrifying PHP file editing in a web interface, the worst security nightmare of all. Oh! Goba
participants (4)
-
Adrian Rossouw -
Bèr Kessels -
Chris Cook -
Gabor Hojtsy