_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.

▾ 1 function calls _system_sql()

system_sql in modules/system/system.admin.inc
Menu callback: return information about the database.

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
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.