Commit e60c3171 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#200921 by Pancho: code consistency change, renaming an internal variable in...

#200921 by Pancho: code consistency change, renaming an internal variable in drupal_get_schema() for better developer docs
parent 343e4085
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment