summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-12-22 21:12:04 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-12-22 21:12:04 +0000
commite60c31715d27e7fb45dda1ea9b11aa777d3a9a87 (patch)
tree83d3e906e77a0639e3cb00f247ce3839c8496f0a /includes
parent343e4085bfecf7cebc0aaac1dbc3c46c7e8c06fb (diff)
downloadbrdo-e60c31715d27e7fb45dda1ea9b11aa777d3a9a87.tar.gz
brdo-e60c31715d27e7fb45dda1ea9b11aa777d3a9a87.tar.bz2
#200921 by Pancho: code consistency change, renaming an internal variable in drupal_get_schema() for better developer docs
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc10
1 files changed, 5 insertions, 5 deletions
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;