[drupal-devel] [feature] New hook, header to allow pre-header module functions

jhriggs drupal-devel at drupal.org
Fri Apr 15 14:02:39 UTC 2005

Issue status update for http://drupal.org/node/20562

 Project:      Drupal
 Version:      cvs
 Component:    base system
 Category:     feature requests
 Priority:     normal
 Assigned to:  RobinMonks at moznetwork.org
 Reported by:  RobinMonks at moznetwork.org
 Updated by:   jhriggs
 Status:       patch

Can't this be done with drupal_set_header() [1]? If you need to do it
for every page, you could do it from inside hook_menu().  Otherwise,
just call it as needed.
[1] http://drupaldocs.org/api/head/function/drupal_set_header


Previous comments:

April 15, 2005 - 07:41 : RobinMonks at moznetwork.org

Attachment: http://drupal.org/files/issues/header hook.inc.patch (612 bytes)

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

More information about the drupal-devel mailing list