setting page title

checkerboard - October 18, 2007 - 16:11

Hi,
I want to set the page title of the page consisting of a form being rendered. Instead of the default title, I want to display my custom title. I have tried to use drupal_set_title but it's not working.Where am I supposed to use that function .It's not working in form_alter.Seeking for help

Which form are you altering

gpk - October 18, 2007 - 18:01

Which form are you altering using hook_form_alter()?

Probably the page in question sets its page title after the form is built, hence your title is being overridden. Maybe try using hook_footer() to set the title.

See also http://api.drupal.org/api/function/drupal_set_title/5

gpk
----
www.alexoria.co.uk

 
 

Drupal is a registered trademark of Dries Buytaert.