public static function FieldHelper::readFieldByID in Helper 7
2 calls to FieldHelper::readFieldByID()
- FieldHelper::purgeInstance in lib/
FieldHelper.php - FieldHelper::purgeInstanceData in lib/
FieldHelper.php - Purge all data from a field instance.
File
- lib/
FieldHelper.php, line 179
Class
Code
public static function readFieldByID($id, $include_deleted = TRUE, $include_inactive = TRUE) {
$fields = field_read_fields(array(
'id' => $id,
), array(
'include_deleted' => $include_deleted,
'include_inactive' => $include_inactive,
));
return !empty($fields) ? reset($fields) : FALSE;
}