You are here

function _system_sql in Drupal 6

Same name and namespace in other branches
  1. 5 modules/system/system.module \_system_sql()

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 modules/system/system.admin.inc
Menu callback: return information about the database.

File

modules/system/system.admin.inc, line 1776
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);
}