You are here

function theme_link_node_thumbnail in link node 5

Same name and namespace in other branches
  1. 6 link_node.module \theme_link_node_thumbnail()
  2. 7 link_node.module \theme_link_node_thumbnail()

Generates a thumbnail view of a node.

1 call to theme_link_node_thumbnail()
link_node_filter_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 180

Code

function theme_link_node_thumbnail(&$node) {
  $main = true;
  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;
}