On this page
function DatabaseSchema::prefixNonTable
DatabaseSchema::prefixNonTable($table)
Create names for indexes, primary keys and constraints.
This prevents using {} around non-table names like indexes and keys.
File
- includes/database/schema.inc, line 259
- Generic Database schema code.
Class
Code
function prefixNonTable($table) {
$args = func_get_args();
$info = $this->getPrefixInfo($table);
$args[0] = $info['table'];
return implode('_', $args);
}
© 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!schema.inc/function/DatabaseSchema::prefixNonTable/7.x