According to the documentation that comes with 6.x-2.x, you still have to add the _phptemplate_variables function. However, according to this:

http://drupal.org/node/132442

...that's no longer supported.

Comments

wayland76’s picture

Additionally, allow me to point out this link:

http://drupal.org/node/223430

...according to that, we should be able to add a page_title_preprocess_page function, and everything should be happy.

wayland76’s picture

(My point being, this means we no longer need to edit themes! Yay!)

nicholasthompson’s picture

Title: Can't make Page Title work » Use 'hook_preprocess_page' for Drupal 6
Component: Documentation » Code
Status: Active » Needs review

In theory - yes. I looked into this and, for some reason, believed this wasn't possible. I'll look into this.

wayland76’s picture

I was assuming that the relevant item was:

moduleName_preprocess_hook

which would translate (I believe) to:

page_title_preprocess_page()

Anyway, what I did to get it working for me was to modify the phptemplate_preprocess_page function in the garland theme, rather than _phptemplate_variables as that last no longer works.

HTH,

nicholasthompson’s picture

Status: Needs review » Fixed

This has been committed to DRUPAL-6--2.

http://drupal.org/cvs?commit=114743

Thanks guys - this makes life a LOT easier.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.