Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The hook_preprocess_html() does not work in modules, it's a theme hook. In drupal 7.51 this hook isn't called if it is in a module, not in a theme! (and possibly from the older versions too)
Comments
Comment #2
golddragon007 CreditAttribution: golddragon007 commentedWell, if you don't turn on the module... it won't... such a supprise.
Comment #3
golddragon007 CreditAttribution: golddragon007 commentedComment #4
DamienMcKennaI'm glad it was something small, I was in quite a confused state for just a moment. :) Thanks for taking the time to open the issue.