You are here

function google_adwords_field_is_empty in Google AdWords Conversion Tracking 7.2

Same name and namespace in other branches
  1. 7 google_adwords.module \google_adwords_field_is_empty()

Implements hook_field_is_empty().

hook_field_is_emtpy() is where Drupal asks us if this field is empty. Return TRUE if it does not contain data, FALSE if it does. This lets the form API flag an error when required fields are empty.

File

./google_adwords.module, line 34
Google Adwords Conversion Tracking Module.

Code

function google_adwords_field_is_empty($item, $field) {
  return empty($item['conversion_id']);
}