public static function OpenGraphMetaDrupalLayer::render_meta_tag in Open Graph meta tags 7
Same name and namespace in other branches
- 6 opengraph_meta.common.inc \OpenGraphMetaDrupalLayer::render_meta_tag()
Render given META tag to HTML output.
1 call to OpenGraphMetaDrupalLayer::render_meta_tag()
File
- ./
opengraph_meta.common.inc, line 442
Class
- OpenGraphMetaDrupalLayer
- Drupal compatibility layer.
Code
public static function render_meta_tag($name, $content) {
$element = array(
'#tag' => 'meta',
'#attributes' => array(
'property' => $name,
'content' => $content,
),
);
drupal_add_html_head($element, "opengraph_meta_{$name}");
}