Created
January 21, 2015 15:24
-
-
Save mrded/aedbc6fbe6874612beef to your computer and use it in GitHub Desktop.
Drupal: Set header data (title, metatags).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Insert into page callback. | |
drupal_add_html_head(array( | |
'#tag' => 'title', | |
'#value' => 'new header title', | |
), 'foo_title'); | |
drupal_add_html_head(array( | |
'#tag' => 'meta', | |
'#attributes' => array( | |
'name' => 'description', | |
'content' => 'hello world', | |
), | |
), 'foo_meta'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment