diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-08-19 12:37:58 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-08-19 12:37:58 +0000 |
commit | 4a242a80b5d8fd3ddbc66873a857038fdbb28058 (patch) | |
tree | 46c942cd98fa74a8de5821941c73fd2dc4b185cf /modules/node/node.module | |
parent | b2730e86d588bcf7fd0f036571014b75d1bc992f (diff) | |
download | brdo-4a242a80b5d8fd3ddbc66873a857038fdbb28058.tar.gz brdo-4a242a80b5d8fd3ddbc66873a857038fdbb28058.tar.bz2 |
- Patch #543294 by Damien Tournoud et al: add status/promote/sticky to node_revisions table.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index c1f6ee08e..7eda3b89b 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -750,9 +750,11 @@ function node_load_multiple($nids = array(), $conditions = array(), $reset = FAL // Add fields from the {node} table. $node_fields = drupal_schema_fields_sql('node'); - // vid and title are provided by node_revision, so remove them. - unset($node_fields['vid']); - unset($node_fields['title']); + // The columns vid, title, status, comment, promote, moderate, and sticky + // are all provided by node_revision, so remove them. + foreach (array('vid', 'title', 'status', 'comment', 'promote', 'moderate', 'sticky') as $column) { + unset($node_fields[$column]); + } $query->fields('n', $node_fields); // Add all fields from the {node_revision} table. |