1.20.x schema.inc public 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 264
Generic Database schema code.

Class

DatabaseSchema
Base class for database schema definitions.

Code

public function prefixNonTable($table) {
  $args = func_get_args();
  $info = $this->getPrefixInfo($table);
  $args[0] = $info['table'];
  return implode('_', $args);
}