function getlocations_leaflet_field_is_empty in Get Locations 7
Same name and namespace in other branches
- 7.2 modules/getlocations_leaflet/getlocations_leaflet.module \getlocations_leaflet_field_is_empty()
Implements hook_field_is_empty(). Define what constitutes an empty item for a field type. hook_field_is_emtpy() is where Drupal asks us if this field is empty. Return TRUE if it does not contain data, FALSE if it does. This lets the form API flag an error when required fields are empty.
Parameters
$item: An item that may or may not be empty.
$field: The field to which $item belongs.
Return value
TRUE if $field's type considers $item not to contain any data; FALSE otherwise.
File
- modules/
getlocations_leaflet/ getlocations_leaflet.module, line 1207 - getlocations_leaflet.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function getlocations_leaflet_field_is_empty($item, $field) {
return FALSE;
}