List Info

Thread: Custom Configuration Options . . .




Custom Configuration Options . . .
country flaguser name
United States
2007-03-05 09:07:28
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.co
m/ (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/
_______________________________________________
themes mailing list
themesdrupal.org
http:
//lists.drupal.org/mailman/listinfo/themes

Re: Custom Configuration Options . . .
country flaguser name
Germany
2007-03-05 13:45:04
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
themesdrupal.org
http:
//lists.drupal.org/mailman/listinfo/themes

Re: Custom Configuration Options . . .
user name
2007-03-05 14:18:01
http://drupal.org/node/54990

On 3/5/07, Konstantin Käfer < kkaefergmail.com">kkaefergmail.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
themesdrupal.org">themesdrupal.org
http://lists.drupal.org/mailman/listinfo/themes



--
Regards,
  ;Johan Forngren

 &nbsp; johanforngren.com">johanforngren.com :: http://johan.forngren.com/
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )