function theme_finder_node_result in Finder 6
Same name and namespace in other branches
- 7 modules/finder_node/finder_node.module \theme_finder_node_result()
Theme a node finder result.
Parameters
$key: The result key.
$result: A result object.
$finder: The finder object.
$form_state: The Forms API form state.
1 theme call to theme_finder_node_result()
- finder_node_finder_result in modules/
finder_node/ finder_node.module - Implementation of hook_finder_result().
File
- modules/
finder_node/ finder_node.module, line 229 - The finder node module.
Code
function theme_finder_node_result($key, $result, $finder, $form_state) {
$output = '';
$result_node = node_load($result->nid);
// Open the results wrapper
$output .= '<div class="finder-node-result-' . $key . '" class="finder-node-result">';
// Output a teaser of the node
$output .= node_view($result_node, TRUE);
// Close the results wrapper
$output .= '</div>';
return $output;
}