Skip to content
Snippets Groups Projects
Commit 9dcbfbc1 authored by Dave Reid's avatar Dave Reid
Browse files

Standardized error message.

parent 3b38f326
No related branches found
No related tags found
No related merge requests found
...@@ -361,7 +361,7 @@ function schema_engine_type($col, $table, $field, $engine = NULL) { ...@@ -361,7 +361,7 @@ function schema_engine_type($col, $table, $field, $engine = NULL) {
return $map[$type]; return $map[$type];
} }
else { else {
trigger_error(t('%table.%field: no %engine type for Schema type %type.', array('%engine' => $engine, '%type' => $type, '%table' => $table, '%field' => $field)), E_USER_WARNING); trigger_error(t('@table.@field: no @engine type for schema type @type.', array('@engine' => $engine, '@type' => $type, '@table' => $table, '@field' => $field)), E_USER_WARNING);
return $col['type']; return $col['type'];
} }
} }
...@@ -377,7 +377,7 @@ function schema_schema_type($type, $table, $field, $engine = NULL) { ...@@ -377,7 +377,7 @@ function schema_schema_type($type, $table, $field, $engine = NULL) {
} }
else { else {
if (!variable_get('schema_suppress_type_warnings', FALSE)) { if (!variable_get('schema_suppress_type_warnings', FALSE)) {
trigger_error(t('Field @table.@field: no Schema type for @engine type @type.', array('@engine' => $engine, '@type' => $type, '@table' => $table, '@field' => $field)), E_USER_WARNING); trigger_error(t('@table.@field: no schema type for @engine type @type.', array('@engine' => $engine, '@type' => $type, '@table' => $table, '@field' => $field)), E_USER_WARNING);
} }
return array($type, 'normal'); return array($type, 'normal');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment