From e60c31715d27e7fb45dda1ea9b11aa777d3a9a87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Sat, 22 Dec 2007 21:12:04 +0000 Subject: #200921 by Pancho: code consistency change, renaming an internal variable in drupal_get_schema() for better developer docs --- includes/common.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'includes') diff --git a/includes/common.inc b/includes/common.inc index ecbc3dfff..f2e5b7f35 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -3017,12 +3017,12 @@ function drupal_common_theme() { * The returned schema will include any modifications made by any * module that implements hook_schema_alter(). * - * @param $name + * @param $table * The name of the table. If not given, the schema of all tables is returned. * @param $rebuild * If true, the schema will be rebuilt instead of retrieved from the cache. */ -function drupal_get_schema($name = NULL, $rebuild = FALSE) { +function drupal_get_schema($table = NULL, $rebuild = FALSE) { static $schema = array(); if (empty($schema) || $rebuild) { @@ -3048,11 +3048,11 @@ function drupal_get_schema($name = NULL, $rebuild = FALSE) { } } - if (!isset($name)) { + if (!isset($table)) { return $schema; } - elseif (isset($schema[$name])) { - return $schema[$name]; + elseif (isset($schema[$table])) { + return $schema[$table]; } else { return FALSE; -- cgit v1.2.3