[imp] autopopulating default identity
Chuck Hagenbuch
chuck@horde.org
Mon, 28 Jan 2002 16:02:30 -0500
Quoting Liam Hoekenga <liamr@umich.edu>:
> Would it possible to use $registry->call('contacts/search', .....) to
> fill in $_prefs['fullname']['value']? I'd tried something like
>
> $_prefs['fullname'] = array(
> 'value' => $registry->call('contacts/search',
> array($GLOBALS['imp']['user'],
> 'umod', 'uniqname')),
> 'locked' => false,
> 'shared' => true,
> 'type' => 'implicit'
> );
Without exploring this too in depth myself, again, $GLOBALS[] is your friend.
Everything in the conf files happens inside a function call, and so you are
_not_ at the global scope. At this point, a read through
http://www.php.net/manual/en/language.variables.scope.php might be a good thing.
-chuck
--
Charles Hagenbuch, <chuck@horde.org>
"What was and what may be, lie, like children whose faces we cannot see, in the
arms of silence. All we ever have is here, now." - Ursula K. Le Guin