You are here

function schema_show in Schema 7

Same name and namespace in other branches
  1. 5 schema.module \schema_show()
  2. 6 schema.module \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
Implements hook_menu().

File

./schema.pages.inc, line 254
Page callbacks for the Schema module.

Code

function schema_show() {
  $schema = schema_get_schema();
  $show = var_export($schema, 1);
  return "<textarea style=\"width:100%\" rows=\"30\">{$show}</textarea>";
}