You are here

function theme_gmap_location_infowindow_node__og in GMap Module 7

Same name and namespace in other branches
  1. 6.2 gmap_location.module \theme_gmap_location_infowindow_node__og()
  2. 6 gmap_location.module \theme_gmap_location_infowindow_node__og()
  3. 7.2 gmap_location.module \theme_gmap_location_infowindow_node__og()

Theme an Organic Groups node info window.

File

./gmap_location.module, line 809
GMap Location module is a module to add some gmap funcationality based on location.modules information.

Code

function theme_gmap_location_infowindow_node__og(&$vars) {
  $node = $vars['node'];
  $opt = $vars['opt'];
  if (is_numeric($opt) && ($account = user_load($opt))) {
    $output = theme('user_picture', array(
      'account' => $account,
    ));
    $output .= theme('username', array(
      'account' => $account,
    ));
    echo $output;
    exit;
  }
}