[development] _preprocess_ issues

John VanDyk jvandyk at iastate.edu
Sun Nov 1 00:25:54 UTC 2009

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  

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.


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/20091031/6708f7a9/attachment.html 

More information about the development mailing list