function royalsliderfield_field_is_empty in RoyalSlider Integration 7
Implements hook_field_is_empty().
Each slide must have at least an image or HTML content defined. Otherwise it should be considered empty.
File
- contrib/
royalsliderfield/ royalsliderfield.module, line 29 - RoyalSlider Field module.
Code
function royalsliderfield_field_is_empty($item, $field) {
if (empty($item['rs_image']) && empty($item['rs_caption']) && empty($item['rs_video']) && empty($item['rs_content']['value']) && empty($item['rs_link'])) {
return TRUE;
}
return FALSE;
}