function _system_sql

6.x system.admin.inc _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.

1 call to _system_sql()
system_sql in drupal-6.x/modules/system/system.admin.inc
Menu callback: return information about the database.

File

drupal-6.x/modules/system/system.admin.inc, line 1770
Admin page callbacks for the system module.

Code

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);
}