_system_sql
- Versions
- 5 – 6
_system_sql($data, $keys)
Theme a SQL result table.
Parameters
$data The actual table data.
$keys Data keys and descriptions.
Return value
The output HTML.
Code
modules/system/system.admin.inc, line 1749
<?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);
}
?>Login or register to post comments 