/[drupal]/contributions/modules/gmap/THEMING.txt
ViewVC logotype

Contents of /contributions/modules/gmap/THEMING.txt

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download)
Tue Jul 15 18:45:37 2008 UTC (16 months, 1 week ago) by bdragon
Branch: MAIN
CVS Tags: DRUPAL-6--1-0-RC1, DRUPAL-6--1-0-RC2, DRUPAL-6--1-0, DRUPAL-6--1-0-BETA6, DRUPAL-6--1-1-RC1, DRUPAL-6--1-0-BETA5, DRUPAL-6--1-0-BETA4, HEAD
Changes since 1.2: +7 -1 lines
File MIME type: text/plain
More 6.x porting.
Did some theme function renaming for gmap_location to be more in line with the 6.x way of doing it.
1 ** Work in progress **
2
3 Node Markers:
4
5 function theme_{nodetype}_gmapnodelabel($node, $opt);
6 function theme_gmapnodelabel($node, $opt);
7
8 $opt is an extra parameter passed by the dynamic info box loader.
9
10 Example:
11 <?php
12 function theme_image_gmapnodelabel($n) {
13 $out = '<a href="'. url('node/'. $n->nid) .'">'. check_plain($n->title) .'</a> <br>';
14 $out .= image_display($n, 'thumbnail');
15 return $out;
16 }
17 ?>
18
19
20 Drupal 6 theming updates:
21
22 *_gmapnodelabel changed to gmap_location_infowindow_node__*.
23 gmap_location_user_html changed to gmap_location_infowindow_user.

  ViewVC Help
Powered by ViewVC 1.1.2