| 1 |
<?php // $Id$ |
<?php // $Id: geo.theme.inc,v 1.1 2009/11/17 22:09:57 vauxia Exp $ |
| 2 |
|
|
| 3 |
function geo_theme_theme() { |
function geo_theme_theme() { |
| 4 |
$path = drupal_get_path('module', 'geo') .'/theme'; |
$path = drupal_get_path('module', 'geo') .'/theme'; |
| 35 |
), |
), |
| 36 |
'geo_fields' => array( |
'geo_fields' => array( |
| 37 |
'arguments' => array('element' => NULL), |
'arguments' => array('element' => NULL), |
| 38 |
|
'file' => 'geo.theme.inc', |
| 39 |
|
'path' => $path, |
| 40 |
), |
), |
| 41 |
'geo_latlon' => array( |
'geo_latlon' => array( |
| 42 |
'arguments' => array('element' => NULL), |
'arguments' => array('element' => NULL), |
| 43 |
|
'file' => 'geo.theme.inc', |
| 44 |
|
'path' => $path, |
| 45 |
), |
), |
| 46 |
); |
); |
| 47 |
} |
} |
| 76 |
return '<'. $tag .'>' . $value .'</'. $tag .'>'; |
return '<'. $tag .'>' . $value .'</'. $tag .'>'; |
| 77 |
} |
} |
| 78 |
} |
} |
| 79 |
|
|
| 80 |
|
function theme_geo_fields($element) { |
| 81 |
|
return isset($element['#children']) ? $element['#children'] : ''; |
| 82 |
|
} |
| 83 |
|
|
| 84 |
|
function theme_geo_latlon($element) { |
| 85 |
|
$output = '<div class="container-inline">'. $element['#children'] .'</div>'; |
| 86 |
|
return theme('form_element', $element, $output); |
| 87 |
|
} |