You are here

function phone_content_is_empty in Phone 6

Implementation of hook_content_is_empty().

NEW REQUIRED HOOK!

This function tells the content module whether or not to consider the $item to be empty. This is used by the content module to remove empty, non-required values before saving them.

File

./phone.module, line 770
Defines phone number fields for CCK. Provide some verifications on the phone numbers

Code

function phone_content_is_empty($item, $field) {
  if (empty($item['value'])) {
    return TRUE;
  }
  return FALSE;
}