function date_content_is_empty in Date 6
Same name and namespace in other branches
- 6.2 date/date.module \date_content_is_empty()
Implementation of hook_content_is_empty().
File
- date/
date.module, line 21 - Defines date/time field types for the Content Construction Kit (CCK).
Code
function date_content_is_empty($item, $field) {
if (empty($item['value'])) {
return TRUE;
}
elseif ($field['todate'] == 'required' && empty($item['value2'])) {
return TRUE;
}
return FALSE;
}