function theme_data_ui_schema_compare_table in Data 6
Same name and namespace in other branches
- 7 data_ui/data_ui.admin.inc \theme_data_ui_schema_compare_table()
Theme a schema module comparison result. Ie. the result of schema_compare_table().
@todo: move to schema module - write a patch.
1 theme call to theme_data_ui_schema_compare_table()
- data_ui_adjust_form in data_ui/
data_ui.admin.inc - Adjust table schema form: Present the user with the difference between schema information and the actual schema in the Database and offer three options:
File
- data_ui/
data_ui.admin.inc, line 943 - Admin UI functions.
Code
function theme_data_ui_schema_compare_table($comparison) {
$output = '';
foreach ($comparison as $k => $v) {
if (!empty($v)) {
if (is_string($k)) {
$output .= '<dl>';
$output .= '<dt>' . ucfirst($k) . ':</dt>';
$output .= '<dd>';
if (is_string($v)) {
$output .= $v;
}
elseif (is_array($v)) {
$output .= theme('item_list', $v);
}
$output .= '</dd>';
$output .= '</dl>';
}
}
}
return $output;
}