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

CommentFileSizeAuthor
header hook.inc.patch612 bytesRobinMonks
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jhriggs’s picture

Can'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.

killes@www.drop.org’s picture

Status: Needs review » Closed (won't fix)

use drupal_set_header