[development] crazy api idea #19423

Adrian Rossouw adrian at bryght.com
Thu Nov 10 15:07:23 UTC 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

So, i was having to disable tinymce in my user profile because it  
didn't like my browser..

and i realized we have the same variable in two places.
1) system wide
2) per user.

And then I realized we had the same thing in several places (themes  
for instance), and I thought, why not just codify this.

Add an 'id' and a 'region' < bad word> to the variable table, and  
then allow the same function to set
variables on whichever region (system, theme, style, user .. etc?) we  
need.

You could have a default preference (ie: 'defaults', 'system',  
'section', 'user') [ i'll explain about the section later ]

Each new 'region' that gets added to the stack would just need to be  
initialized .. ie :
variable_initialize('user', $user->uid);
variable_initialize('section', $GLOBALS['section']);





- --
Adrian Rossouw
Drupal developer and Bryght Guy
http://drupal.org | http://bryght.com


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFDc2IsgegMqdGlkasRAnvEAKDgNwKgJ4AT5vLPluF1Oy7rj6VcKACcDFUc
138msUYWoGUgXMBe0GwrDDc=
=97/J
-----END PGP SIGNATURE-----


More information about the development mailing list