One function that is needed in Drupal (and that our modules currently don't have), is access to write headers. This patch aims to fix that, by providing a hook to send headers before the main header for Drupal is sent.
This will also help with modules such as securesite, by allowing HTTP Auth to be called before we sent content type headers.
Robin Monks
MozNetwork.org
| Comment | File | Size | Author |
|---|---|---|---|
| header hook.inc.patch | 612 bytes | RobinMonks |
Comments
Comment #1
jhriggs commentedCan't this be done with drupal_set_header()? If you need to do it for every page, you could do it from inside hook_menu(). Otherwise, just call it as needed.
Comment #2
killes@www.drop.org commenteduse drupal_set_header