function getlocations_fields_field_is_empty in Get Locations 7
Same name and namespace in other branches
- 7.2 modules/getlocations_fields/getlocations_fields.module \getlocations_fields_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_fields/ getlocations_fields.module, line 610 - getlocations_fields.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function getlocations_fields_field_is_empty($item, $field) {
return FALSE;
}