Error message

You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).

function DatabaseSchema_mysql::createKeysSqlHelper

1 call to DatabaseSchema_mysql::createKeysSqlHelper()
DatabaseSchema_mysql::createKeysSql in includes/database/mysql/schema.inc

File

includes/database/mysql/schema.inc, line 302

Class

DatabaseSchema_mysql

Code

protected function createKeysSqlHelper($fields) {
 $return = array();
 foreach ($fields as $field) {
 if (is_array ($field)) {
 $return[] = '`' . $field[0] . '`(' . $field[1] . ')';
 }
 else {
 $return[] = '`' . $field . '`';
 }
 }
 return implode (', ', $return);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.