Inserting tags in HEAD section of a Drupal page

The “hook_html_head_alter()” can let you add tags to the HEAD section of a Drupal page. Despite some of the comments, I found that if you need to put it into a module in Drupal 7, you do need to name the hook after the module’s name, instead of just “template_”….

If you want to build tags… the Drupal way :-P… try the function theme_html_tag().

I found this was useful for a module I was writing… stay tuned people :-).

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s