function theme_link_node_thumbnail in link node 7
Same name and namespace in other branches
- 5 link_node.module \theme_link_node_thumbnail()
- 6 link_node.module \theme_link_node_thumbnail()
Generates a thumbnail view of a node.
1 theme call to theme_link_node_thumbnail()
- link_node_filter_link_node_process in ./
link_node.module - Actually execute filter on given text. Parse text for all meta tags. Lookup each specified node. Parse all parameters specified in each meta tag and apply them to the corresponding node. Replace meta tag with themed thumbnail view of the referrent node.
File
- ./
link_node.module, line 148 - Implements the link_node module.
Code
function theme_link_node_thumbnail($variables) {
$node = $variables['node'];
if ($node->type == "image") {
// offer theme developers and module developers to override this
if (function_exists("image_link_node_thumbnail")) {
return image_link_node_thumbnail($node);
}
}
$output = l($node->title, "node/" . $node->nid, array(
'class' => 'link-node',
));
return $output;
}