| 1 |
<?php // $Id: geo_field.module,v 1.26 2009/11/09 17:44:40 vauxia Exp $ |
<?php // $Id: geo_field.module,v 1.27 2009/11/17 19:07:21 vauxia Exp $ |
| 2 |
|
|
| 3 |
/** |
/** |
| 4 |
* @file |
* @file |
| 168 |
} |
} |
| 169 |
} |
} |
| 170 |
return; |
return; |
|
|
|
|
case 'sanitize': |
|
|
geo_set_pre_render($node->content); |
|
|
return; |
|
| 171 |
} |
} |
| 172 |
} |
} |
| 173 |
|
|
| 174 |
/** |
/** |
| 175 |
* Implementation of hook_content_is_empty(). |
* Implementation of hook_content_is_empty(). |
| 176 |
* It's named after the field type (geo), not the module (geo_data). |
* It's named after the field type (geo), not the module (geo_field). |
| 177 |
*/ |
*/ |
| 178 |
function geo_content_is_empty($item, $field) { |
function geo_content_is_empty($item, $field) { |
| 179 |
return empty($item['geo']); |
return empty($item['geo']); |