function opengraph_meta_node_view in Open Graph meta tags 6
Same name and namespace in other branches
- 7 opengraph_meta.drupal7-hooks.inc \opengraph_meta_node_view()
Implements hook_node_view().
File
- ./
opengraph_meta.drupal7-hooks.inc, line 36
Code
function opengraph_meta_node_view($node, $view_mode, $langcode) {
// only show meta tags if viewing full node as a page
if ('full' == $view_mode && !empty($node->opengraph_meta)) {
OpenGraphMeta::instance()
->render_data($node, $node->opengraph_meta);
}
}