You are here

private function EntityFieldQueryExtraFields::checkFieldExists in EntityFieldQuery Extra Fields 7

Check if the field already has a table that does a join.

Parameters

type $field_name:

Return value

boolean

1 call to EntityFieldQueryExtraFields::checkFieldExists()
EntityFieldQueryExtraFields::addExtraField in ./efq_extra_field.module
Add the given field with an INNER JOIN and add a select statement for the requested field

File

./efq_extra_field.module, line 167

Class

EntityFieldQueryExtraFields

Code

private function checkFieldExists($field_name) {
  $fields = $this->fields;
  foreach ($fields as $field) {
    if (isset($field['field_name']) && $field['field_name'] == $field_name) {
      return TRUE;
    }
  }
  return FALSE;
}