Custom Configuration Options . . .
What do I need to do to a theme I am creating so that I can provide some custom configuration options to the end user on the admin/build/themes/settings/mytheme page? I tried adding a hook_form_alter function to template.php, but that was unsuccessful. In fact, the only thing that was successful was to create a module and do it there. I would really like to avoid having a theme depend on a module. RTFM answers are fine, provided they include pointers, as I have been unable to find anything on this on either d.o and a.d.o. (That doesn't mean it's not there, just that I can't find it.) :^) Thanks. -- Jason Flatt http://www.oadaeh.net/ Father of Six: http://www.flattfamily.com/ (Joseph, 13; Cramer, 11; Travis, 9; Angela; Harry, 5; and William, 12:04 am, 12-29-2005) Linux User: http://www.kubuntu.org/ Drupal Fanatic: http://drupal.org/
Hi,
I tried adding a hook_form_alter function to template.php, but that was unsuccessful. In fact, the only thing that was successful was to create a module and do it there. I would really like to avoid having a theme depend on a module.
This would indeed be a *very* useful addition. I have often felt the urge to provide configuration options for themes I have written and always ended up writing an own module for it. +1 from me. Konstantin Käfer – http://kkaefer.com/
http://drupal.org/node/54990 On 3/5/07, Konstantin Käfer <kkaefer@gmail.com> wrote:
Hi,
I tried adding a hook_form_alter function to template.php, but that was unsuccessful. In fact, the only thing that was successful was to create a module and do it there. I would really like to avoid having a theme depend on a module.
This would indeed be a *very* useful addition. I have often felt the urge to provide configuration options for themes I have written and always ended up writing an own module for it. +1 from me.
Konstantin Käfer – http://kkaefer.com/
_______________________________________________ themes mailing list themes@drupal.org http://lists.drupal.org/mailman/listinfo/themes
-- Regards, Johan Forngren johan@forngren.com :: http://johan.forngren.com/
participants (3)
-
Jason Flatt -
Johan Forngren -
Konstantin Käfer