[development] _preprocess_ issues

Matt Funk matze999 at gmx.net
Mon Nov 2 16:49:28 UTC 2009


Thank you John,

i am sorry. I wasn't trying to be dense on purpose. 
Things work now ...

matt

On Saturday 31 October 2009, John VanDyk wrote:
> Matt, take a look at the Note on page 182: "Variables are only
> aggregated and passed into themable items that are implemented as
> template files. Variables are not passed into themable items
> implemented as theme functions."
>
> Thus, if you do not have a breadcrumb.tpl.php file in your theme, that
> is why it is not happening for you.
>
> Also, the Note on page 181 warns: "Don't use Garland as the active
> theme..."
>
> If you do use Garland, you'll have to comment out the
> phptemplate_breadcrumb() function in Garland's template.php, as it is
> taking precedence.
>
> John
>
> On Oct 30, 2009, at 5:56 PM, Matt Funk wrote:
> > Hi,
> >
> > I tried the support forum first, but no one seems to answer there,
> > so forgive
> > me if this is thread is misplaced.
> >
> > I am trying a simple thing:
> > I declare (straight from pro drupal development):
> >
> > function phptemplate_preprocess_breadcrumb(&$variables) {
> > drupal_set_message(print_r("some message,true));
> > }
> >
> > After clearing the cache, i also check the theme-registry (via the
> > developer
> > module) and it is listed under breadcrumb-
> >
> > >phptemplate_preprocess_breadcrumb
> >
> > as:
> > 2 (String, 33 characters ) phptemplate_preprocess_breadcrumb |
> > (Callback)
> > phptemplate_preprocess_breadcrumb();
> >
> > However, it is NEVER called as far as i can tell. Variables set in
> > there are
> > always empty and message set as shown above never show either.
> >
> > I am sorry to bother the list with this, but WHAT am i doing wrong?
> >
> >
> > thanks
> > matt


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20091102/54069ddc/attachment.html 


More information about the development mailing list