3 May
2007
3 May
'07
11:01 p.m.
On 03 May 2007, at 14:39, Earnie Boyd wrote:
<?php define('MY_DEFAULT_VALUE', t('my_default_value')); ?>
How about this: define('site_name', 'example'); function variable_get($name) { $value = db_result(db_query(...)); return $value ? $value : constant($name); } print variable_get('site_name'); Might get us the best of both worlds? :) -- Dries Buytaert :: http://www.buytaert.net/