function paymentreference_field_is_empty in Payment 7
Implements hook_field_is_empty().
File
- modules/
paymentreference/ paymentreference.module, line 260 - Hook implementations and general functions.
Code
function paymentreference_field_is_empty(array $item, array $field) {
if ($field['type'] == 'paymentreference') {
return empty($item['pid']);
}
}