function theme_oembed_node in oEmbed 6.0
Default theme implementation for oembed_node. We just mirror the node_view function and pass everything on to the node template.
Parameters
object $node:
Return value
string The html representation of the node
1 theme call to theme_oembed_node()
- _oembedprovider_node_provider in ./
oembedprovider.inc - The default provider to handle nodes
File
- ./
oembedprovider.module, line 59 - Module for providing content as defined in the oEmbed specification
Code
function theme_oembed_node($node) {
$node = node_build_content($node, TRUE, FALSE);
// Set the proper node part, then unset unused $node part so that a bad
// theme can not open a security hole.
$content = drupal_render($node->content);
$node->teaser = $content;
unset($node->body);
// Allow modules to modify the fully-built node.
node_invoke_nodeapi($node, 'alter', TRUE, FALSE);
return theme('node', $node, TRUE, FALSE);
}