[dev] Easier adding of themes and applets

Marko Djukic marko at oblo.com
Mon Aug 11 12:56:44 PDT 2003


Quoting Chuck Hagenbuch <chuck at horde.org>:

> Quoting Jan Schneider <jan at horde.org>:
>
> > I propose that we stop keeping lists of available themes and portal applets
> > in config/registry.php.dist and config/pref.php.dist and instead parse
> > horde/config/themes/ in horde/prefs.php, resp. horde/lib/Block/ in
> > horde/portal_edit.php for avaiable themes/applets.
> > This is expensive but is only necessary if the users want to change their
> > theme or block layout.
>
> Okay, as long as we're sure that it'd only be needed when listing them all,
> this
> sounds good to me.

plus it would be good if the applets themselves advertise what they are, plug
and play like, rather than fiddling with any config settings.
eg.:
$this->applets['fortune'] = array(
    'name' => _("Random Fortune"),
    'type' => 'fortune',
    'default' => '/usr/games/fortune'
);

could be returned by a getInfo() function inside the applet.


marko


More information about the dev mailing list