[themes] overriding function in template.php
Matt Funk
matze999 at gmx.net
Thu Oct 11 17:24:53 UTC 2007
Thanks for the replies.
I'll try your advice. Really what i was trying to achieve is more or less just
learn about Drupal. Specifically i actually wanted to get some insight into
the flow of things. So i was trying to override a function which at first
does not change anything in terms of the rendered webpage. And then from
there change little things just to see what happens. Pretty basic i guess,
but obviously too hard for me ... :)
One other thing, if i follow what you said, i.e. drop block-user-0.tpl.php
into the theme folder, wouldn't i have to define a callback somewhere?
thanks for your help
mat
On Thursday 11 October 2007 11:02, Progga wrote:
> On Thu, Oct 11, 2007 at 09:28:25AM -0600, Matt Funk wrote:
> > i sent out an email with a question related to overriding functions in
> > template.php a couple of days ago. Maybe i was unclear or so, but no one
> > ever responded. However, i am not the only one who got a little confused.
> > So maybe, if any of the experts could post a response to the issue at:
> >
> > http://drupal.org/node/173282#comment-279725
>
> This bug report might shade some light on your problem:
> http://drupal.org/node/127731
>
> I am not sure what you are trying to achieve, but if you only want to
> change the login block, then dropping the following snippet in the
> block-user-0.tpl.php file inside your theme directory might be the easiest:
>
> ++++++++++++++++++++++++++++++++++
> <h4>SOMETHING</h4>
>
> <?php print $block->content ?>
> ++++++++++++++++++++++++++++++++++
More information about the themes
mailing list