| 1 |
<?php |
<?php |
| 2 |
// $Id: addresses_cck.module,v 1.9 2008/07/31 10:13:18 brmassa Exp $ |
// $Id: addresses_cck.module,v 1.10 2008/07/31 10:16:10 brmassa Exp $ |
| 3 |
/** |
/** |
| 4 |
* @author Bruno Massa |
* @author Bruno Massa |
| 5 |
* @file addresses_cck.module |
* @file addresses_cck.module |
| 211 |
), |
), |
| 212 |
); |
); |
| 213 |
} |
} |
|
|
|
|
/** |
|
|
* Show the Address using the default view. |
|
|
* @ingroup themable |
|
|
*/ |
|
|
function theme_addresses_cck_formatter_default($element) { |
|
|
// Include the important .inc file |
|
|
module_load_include('inc', 'addresses'); |
|
|
|
|
|
// Print the address |
|
|
return theme('addresses', $element['#item']); |
|
|
} |
|
|
|
|
|
/** |
|
|
* Show the Address using the Single Line view. |
|
|
* @ingroup themable |
|
|
*/ |
|
|
function theme_addresses_cck_formatter_single_line($element) { |
|
|
// Include the important .inc file |
|
|
module_load_include('inc', 'addresses'); |
|
|
|
|
|
// Print the address using the one-line only theme |
|
|
return theme('addresses_singleline', $element['#item']); |
|
|
} |
|