function theme_finder_node_result in Finder 7
Same name and namespace in other branches
- 6 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 - Implements hook_finder_result().
File
- modules/
finder_node/ finder_node.module, line 232 - The finder node module.
Code
function theme_finder_node_result($variables) {
extract($variables);
$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
$build = node_view($result_node, 'teaser');
$output .= drupal_render($build);
// Close the results wrapper
$output .= '</div>';
return $output;
}