You are here

function schema_phpprint_key in Schema 8

Same name and namespace in other branches
  1. 5 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_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) . ")";
}