Heine

  • drupal
  • drupal core commits
  • about
Home

Commit 214278 by webchick

#332123 follow-up by quicksketch: Fix API documentation for hook_schema() to reflect that descriptions should not be t()ed.

--- modules/system/system.api.php       2009/05/16 18:34:22     1.35
+++ modules/system/system.api.php       2009/05/20 19:56:36     1.36
@@ -1382,27 +1382,27 @@
 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 @@
     'type' => 'int',
     'not null' => TRUE,
     'default' => 0,
-    'description' => t('Per-user timezone configuration.'),
+    'description' => 'Per-user timezone configuration.',
   );
 }
 

No votes yet
  • Drupal Core
  • Download patch

Recent posts

  • Drupal 6: $base_path doesn't always point to the frontpage
  • XNA SoundEffect ContentLoadException
  • A new form element in Drupal core
  • The backstabbing March-Hare
  • Drupal HEAD and HTTP 500 errors on IIS 7

All-time popular content

  • Update UID 1 password via JS
  • Keeping an eye on Drupal core
  • Subversion on Strato V-PowerServer
  • A new form element in Drupal core
  • Access denied - Are you sure?
more

Tags

Captcha Coding Drupal FAPI IIS Let's hope it doesn't become popular Performance PHP Planet Drupal Quiz Security V-PowerServer
more tags
  • drupal
  • drupal core commits
  • about

Copyright © 2009 by Heine Deelstra. All rights reserved.