function fb_graph_set_tag in Drupal for Facebook 7.3
Same name and namespace in other branches
- 6.3 fb_graph.module \fb_graph_set_tag()
Define a metatag. It will be published in the html header of the current page.
Parameters
$key: The property attribute of the meta tag.
$value: The content attribute of the meta tag.
3 calls to fb_graph_set_tag()
- fb_graph_get_tags in ./
fb_graph.module - Get the metatag values for the current page.
- fb_graph_node_view in ./
fb_graph.module - Implements hook_node_view() Add reasonable opengraph tags to node pages.
- fb_graph_user_view in ./
fb_graph.module - Implements hook_user_view().
File
- ./
fb_graph.module, line 176 - Open Graph Helpers
Code
function fb_graph_set_tag($key = NULL, $value = NULL, $overwrite = TRUE) {
static $cache = array();
if (isset($key)) {
if ($overwrite || !isset($cache[$key])) {
$cache[$key] = $value;
}
}
else {
return $cache;
}
}