function schema_phpprint_key in Schema 5
Same name and namespace in other branches
- 8 schema.module \schema_phpprint_key()
- 6 schema.module \schema_phpprint_key()
- 7 schema.module \schema_phpprint_key()
2 calls to schema_phpprint_key()
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) . ")";
}