You are here

function menu_link_field_is_empty in Menu Link (Field) 7

Implements hook_field_is_empty().

1 call to menu_link_field_is_empty()
menu_link_field_validate in ./menu_link.field.inc
Implements hook_field_validate().

File

./menu_link.field.inc, line 331
Defines a menu link field type.

Code

function menu_link_field_is_empty($item, $field) {
  if (!empty($item['delete']) || !trim($item['link_title']) || empty($item['menu_name']) || empty($item['plid']) && $item['plid'] != '0') {
    return TRUE;
  }
  return FALSE;
}