function schema_phpprint_key in Schema 8
Same name and namespace in other branches
- 5 schema.module \schema_phpprint_key()
- 6 schema.module \schema_phpprint_key()
- 7 schema.module \schema_phpprint_key()
2 calls to schema_phpprint_key()
- schema_phpprint_table in ./
schema.module - TableComparisonInfoBuilder::getInfoArray in src/
Comparison/ TableComparisonInfoBuilder.php
File
- ./
schema.module, line 210 - The Schema module provides functionality built on the Schema API.
Code
function schema_phpprint_key($keys) {
$ret = array();
foreach ($keys as $key) {
if (is_array($key)) {
$ret[] = "array('{$key[0]}', {$key[1]})";
}
else {
$ret[] = "'{$key}'";
}
}
return "array(" . implode(", ", $ret) . ")";
}