Home ›
Check if a field existsCheck if a field exists
Submitted by Benjamin Melançon on May 22, 2009 - 10:22am
http://api.drupal.org/api/function/field_info_field/7
field_info_field('field_name')
returns an object or NULL.
Resolution
Searched words:
fetch a field's informatio, get a field drupal_get_field load field definition
find if a field is defined
Comments
return array not object
return
field array
if field exist else return
NULL
if field not found
Post new comment