function schema_show in Schema 6
Same name and namespace in other branches
- 5 schema.module \schema_show()
- 7 schema.pages.inc \schema_show()
"Show" menu callback. Displays drupal schema as php code, so you can reuse it as you need.
1 string reference to 'schema_show'
- schema_menu in ./
schema.module - Implementation of hook_menu(). Define menu items and page callbacks. admin/build/schema calls local task(default): schema_report() admin/build/schema/report calls local task: schema_report() admin/build/schema/describe calls local task:…
File
- ./
schema.module, line 867 - The Schema module provides functionality built on the Schema API.
Code
function schema_show() {
$schema = drupal_get_schema(NULL, TRUE);
$show = var_export($schema, 1);
$output = <<<EOT
<p>This page displays the Drupal database schema data structure. It is for
debugging purposes.</p>
<textarea style="width:100%" rows="30">{<span class="php-variable">$show</span>}</textarea>
EOT;
return $output;
}