1 views_plugin_query_default.inc views_plugin_query_default::get_field_alias($table_alias, $field)

Returns the alias for the given field added to $table.

See also

views_plugin_query_default::add_field()

File

core/modules/views/plugins/views_plugin_query_default.inc, line 1076
Defines the default query object.

Class

views_plugin_query_default
Object used to create a SELECT query.

Code

function get_field_alias($table_alias, $field) {
  return isset($this->field_aliases[$table_alias][$field]) ? $this->field_aliases[$table_alias][$field] : FALSE;
}