You are here

THEMING.txt in GMap Module 6.2

Same filename and directory in other branches
  1. 5 THEMING.txt
  2. 6 THEMING.txt
  3. 7 THEMING.txt
** Work in progress **

Node Markers:

  function theme_{nodetype}_gmapnodelabel($node, $opt);
  function theme_gmapnodelabel($node, $opt);

  $opt is an extra parameter passed by the dynamic info box loader.

  Example:
<?php
function theme_image_gmapnodelabel($n) {
  $out = '<a href="'. url('node/'. $n->nid) .'">'. check_plain($n->title) .'</a> <br>';
  $out .= image_display($n, 'thumbnail');
  return $out;
}
?>


Drupal 6 theming updates:

*_gmapnodelabel changed to gmap_location_infowindow_node__*.
gmap_location_user_html changed to gmap_location_infowindow_user.

File

THEMING.txt
View source
  1. ** Work in progress **
  2. Node Markers:
  3. function theme_{nodetype}_gmapnodelabel($node, $opt);
  4. function theme_gmapnodelabel($node, $opt);
  5. $opt is an extra parameter passed by the dynamic info box loader.
  6. Example:
  7. function theme_image_gmapnodelabel($n) {
  8. $out = ''. check_plain($n->title) .'
    ';
  9. $out .= image_display($n, 'thumbnail');
  10. return $out;
  11. }
  12. ?>
  13. Drupal 6 theming updates:
  14. *_gmapnodelabel changed to gmap_location_infowindow_node__*.
  15. gmap_location_user_html changed to gmap_location_infowindow_user.