function theme_finder_user_result in Finder 6
Same name and namespace in other branches
- 7 modules/finder_user/finder_user.module \theme_finder_user_result()
Theme a user 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_user_result()
- finder_user_finder_result in modules/
finder_user/ finder_user.module - Implementation of hook_finder_result().
File
- modules/
finder_user/ finder_user.module, line 213 - The finder user module.
Code
function theme_finder_user_result($key, $result, $finder, $form_state) {
$output = '';
$result_user = user_load($result->uid);
// Open the results wrapper
$output .= '<div class="finder-node-result-' . $key . '" class="finder-node-result">';
// Output a themed username
$output .= theme('username', $result_user);
// Close the results wrapper
$output .= '</div>';
return $output;
}