1

I can't find a hook for overrideing drupal_page_header() in bootstrap.inc and it doesn't feel right to make changes in bootstrap.inc.

Is there another other way that I'm missing?

2
  • 3
    What are you trying to accomplish?
    – mpdonadio
    Commented Sep 8, 2011 at 13:37
  • I was trying to change the header('cache-control') but I did it in template_page_preprocess :)
    – mars
    Commented Sep 8, 2011 at 14:00

1 Answer 1

3

If you goal is only to change the Cache-Control you can use drupal_add_http_header(). According the documentation this function allow you override an existing header. If you add it in you template.php you'll able to change the header without patch the core function.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.