[themes] All page titles identical

Progga proggaprogga at gmail.com
Sun Aug 21 09:58:36 UTC 2011


On Sat, Aug 20, 2011 at 07:33:29PM +0200, Agon S. Buchholz wrote:

> Thanks again. I tried to put this into 
> ./sites/all/modules/image/contrib/image_gallery/image_gallery.pages.inc:
> 
>    ...
>      $breadcrumb[] = l($parent->name, 'image/tid/' . $parent->tid);
>      }
>      drupal_set_title(check_plain($gallery->name));
>      drupal_set_message(print_r(debug_backtrace(), TRUE));
>    }
>    ...
> 
> However this didn't output anything but the normal page. What should I 
> expect?

The sequence of calling functions should be displayed as a normal Drupal
message.  You can see an example at http://uk2.php.net/debug_backtrace if
you scroll down to the "Examples" section.

If no output is generated then it could be that the image_gallery_page()
function is not called.  Try calling
"drupal_set_message(print_r(debug_backtrace(), TRUE))" from inside the
drupal_set_title() function at "includes/path.inc, line 206".


Thanks,
Adnan


On Sat, Aug 20, 2011 at 07:33:29PM +0200, Agon S. Buchholz wrote:
> Progga wrote:
> 
> > If you are not shy about writing some PHP code, then you can call
> > the debug_backtrace() function [0] from inside drupal_set_title() to
> > find  out who is calling whom.
> 
> Thanks again. I tried to put this into 
> ./sites/all/modules/image/contrib/image_gallery/image_gallery.pages.inc:
> 
>    ...
>      $breadcrumb[] = l($parent->name, 'image/tid/' . $parent->tid);
>      }
>      drupal_set_title(check_plain($gallery->name));
>      drupal_set_message(print_r(debug_backtrace(), TRUE));
>    }
>    ...
> 
> However this didn't output anything but the normal page. What should I 
> expect?
> 
> Greetings, -asb
> 
> _______________________________________________
> themes mailing list
> themes at drupal.org
> http://lists.drupal.org/mailman/listinfo/themes


More information about the themes mailing list