| Versionen | |
|---|---|
| drupal6 | _system_sql($data, $keys) |
Theme a SQL result table.
$data The actual table data.
$keys Data keys and descriptions.
The output HTML.
modules/
<?php
function _system_sql($data, $keys) {
$rows = array();
foreach ($keys as $key => $explanation) {
if (isset($data[$key])) {
$rows[] = array(check_plain($key), check_plain($data[$key]), $explanation);
}
}
return theme('table', array(t('Variable'), t('Value'), t('Description')), $rows);
}
?>
Kommentare
Kommentar hinzufügen