Skip to content
Snippets Groups Projects
Commit 9c79816c authored by Angie Byron's avatar Angie Byron
Browse files

#332123 follow-up by quicksketch: Fix API documentation for hook_schema() to...

#332123 follow-up by quicksketch: Fix API documentation for hook_schema() to reflect that descriptions should not be t()ed.
parent ba29dbde
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -1382,27 +1382,27 @@ function hook_requirements($phase) {
function hook_schema() {
$schema['node'] = array(
// example (partial) specification for table "node"
'description' => t('The base table for nodes.'),
'description' => 'The base table for nodes.',
'fields' => array(
'nid' => array(
'description' => t('The primary identifier for a node.'),
'description' => 'The primary identifier for a node.',
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE),
'vid' => array(
'description' => t('The current {node_revision}.vid version identifier.'),
'description' => 'The current {node_revision}.vid version identifier.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0),
'type' => array(
'description' => t('The {node_type} of this node.'),
'description' => 'The {node_type} of this node.',
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
'default' => ''),
'title' => array(
'description' => t('The title of this node, always treated a non-markup plain text.'),
'description' => 'The title of this node, always treated a non-markup plain text.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
......@@ -1442,7 +1442,7 @@ function hook_schema_alter(&$schema) {
'type' => 'int',
'not null' => TRUE,
'default' => 0,
'description' => t('Per-user timezone configuration.'),
'description' => 'Per-user timezone configuration.',
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment