function opengraph_meta_node_load in Open Graph meta tags 6
Same name and namespace in other branches
- 7 opengraph_meta.drupal7-hooks.inc \opengraph_meta_node_load()
Implements hook_node_load().
File
- ./
opengraph_meta.drupal7-hooks.inc, line 25
Code
function opengraph_meta_node_load($nodes, $types) {
foreach ($nodes as &$node) {
if (OpenGraphMeta::instance()
->tags_are_enabled_for_content_type($node->type)) {
$node->opengraph_meta = OpenGraphMeta::instance()
->load_node_data($node);
}
}
}