When you create content on Drupal, the header at the top says "Create ". On certain content-types I don't want i开发者_JAVA百科t to say that. Is there a way to customize that header on certain content-types and keep it as-is on others?
thanks.
Did you try drupal_set_title?
http://api.drupal.org/api/function/drupal_set_title/6
I believe you can do this by writing a simple module, calling mymodule_form_alter(), checking the path (for instance, so it only happens on a Page type as opposed to a Blog type), then using drupal_set_title('Custom title') to change it.
If that happens 'too late' in the process, try it with mymodule_init().
You can also look at the String Overrides module.
精彩评论