You are here

function schema_phpprint_key in Schema 5

Same name and namespace in other branches
  1. 8 schema.module \schema_phpprint_key()
  2. 6 schema.module \schema_phpprint_key()
  3. 7 schema.module \schema_phpprint_key()
2 calls to schema_phpprint_key()
schema_compare_table in ./schema.module
schema_phpprint_table in ./schema.module

File

./schema.module, line 88

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) . ")";
}