You are here

function theme_finder_user_result in Finder 7

Same name and namespace in other branches
  1. 6 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
Implements hook_finder_result().

File

modules/finder_user/finder_user.module, line 211
The finder user module.

Code

function theme_finder_user_result($variables) {
  extract($variables);
  $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', array(
    'account' => $result_user,
  ));

  // Close the results wrapper
  $output .= '</div>';
  return $output;
}