diff options
author | Jennifer Hodgdon <yahgrp@poplarware.com> | 2012-11-26 12:57:43 -0800 |
---|---|---|
committer | Jennifer Hodgdon <yahgrp@poplarware.com> | 2012-11-26 12:57:43 -0800 |
commit | c2dd699c385120433fdc9ee31e32eef3d1d155e0 (patch) | |
tree | ccd22c03f0928d4fe89bc0cc923e55492481a023 /modules/system | |
parent | 452e0ec3ebb3bc9a5ceaeeb83bfbd9b96556ae3a (diff) | |
download | brdo-c2dd699c385120433fdc9ee31e32eef3d1d155e0.tar.gz brdo-c2dd699c385120433fdc9ee31e32eef3d1d155e0.tar.bz2 |
Issue #1848516 by IshaDakota: Fix coding style in hook_schema() example function body
Diffstat (limited to 'modules/system')
-rw-r--r-- | modules/system/system.api.php | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php index adef26141..68ca19c13 100644 --- a/modules/system/system.api.php +++ b/modules/system/system.api.php @@ -3092,44 +3092,48 @@ function hook_schema() { 'description' => 'The primary identifier for a node.', 'type' => 'serial', 'unsigned' => TRUE, - 'not null' => TRUE), + 'not null' => TRUE, + ), 'vid' => array( 'description' => 'The current {node_revision}.vid version identifier.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, - 'default' => 0), + 'default' => 0, + ), 'type' => array( 'description' => 'The {node_type} of this node.', 'type' => 'varchar', 'length' => 32, 'not null' => TRUE, - 'default' => ''), + 'default' => '', + ), 'title' => array( 'description' => 'The title of this node, always treated as non-markup plain text.', 'type' => 'varchar', 'length' => 255, 'not null' => TRUE, - 'default' => ''), + 'default' => '', ), + ), 'indexes' => array( 'node_changed' => array('changed'), 'node_created' => array('created'), - ), + ), 'unique keys' => array( 'nid_vid' => array('nid', 'vid'), - 'vid' => array('vid') - ), + 'vid' => array('vid'), + ), 'foreign keys' => array( 'node_revision' => array( 'table' => 'node_revision', 'columns' => array('vid' => 'vid'), - ), + ), 'node_author' => array( 'table' => 'users', - 'columns' => array('uid' => 'uid') - ), - ), + 'columns' => array('uid' => 'uid'), + ), + ), 'primary key' => array('nid'), ); return $schema; |