Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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 CreditAttribution: 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 CreditAttribution: killes@www.drop.org commenteduse drupal_set_header