You are here

function theme_gmap_location_user_page in GMap Module 5

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

Theme function for displaying the user page.

1 theme call to theme_gmap_location_user_page()
gmap_location_user_page in ./gmap_location.module
Draws a page with a google map that has all of the site users.

File

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

Code

function theme_gmap_location_user_page($header, $map, $footer) {
  global $user;
  $output = "<p>{$header}</p>\n<p>{$map}</p>\n<p>{$footer}</p>";
  if ($user->uid > 0) {
    $output .= '<p>' . t('To add/change your location to the user map, <a href="@url">edit your location</a>.', array(
      '@url' => url('user/' . $user->uid . '/edit'),
    )) . '</p>';
  }
  return $output;
}