You are here

private function EntityFieldQueryExtraFields::cleanTables in EntityFieldQuery Extra Fields 7

Give the values in the array the name of the real table instead of the alias, so we can look up the alias quicker

Parameters

type $tables:

Return value

type

1 call to EntityFieldQueryExtraFields::cleanTables()
EntityFieldQueryExtraFields::finishQuery in ./efq_extra_field.module
Finishes the query.

File

./efq_extra_field.module, line 149

Class

EntityFieldQueryExtraFields

Code

private function cleanTables($tables) {
  if (!is_array($tables)) {
    return array();
  }
  foreach ($tables as $table_id => $table) {
    if ($table['join type'] == 'INNER') {
      $tables[$table['table']] = $table;
      unset($tables[$table_id]);
    }
  }
  return $tables;
}