function db_field_names
db_field_names($fields)
Returns an array of field names from an array of key/index column specifiers.
This is usually an identity function but if a key/index uses a column prefix specification, this function extracts just the name.
Parameters
$fields: An array of key/index column specifiers.
Return value
An array of field names.
Related topics
File
- includes/database/database.inc, line 2768
- Core systems for the database layer.
Code
function db_field_names($fields) { return Database::getConnection()->schema()->fieldNames($fields); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!database!database.inc/function/db_field_names/7.x