diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2012-05-02 15:01:31 -0700 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2012-05-02 15:01:31 -0700 |
commit | 9879d29f731570a34b24c4eae4cc8cb30c7a5082 (patch) | |
tree | b28fe3274dca5fb773ec91718f30a617b275fd2e /modules/forum/forum.install | |
parent | b1f01b20ea67f6494421765b17afa17394e7a4b0 (diff) | |
download | brdo-9879d29f731570a34b24c4eae4cc8cb30c7a5082.tar.gz brdo-9879d29f731570a34b24c4eae4cc8cb30c7a5082.tar.bz2 |
Drupal 7.13
Diffstat (limited to 'modules/forum/forum.install')
-rw-r--r-- | modules/forum/forum.install | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/forum/forum.install b/modules/forum/forum.install index 589e3a1cd..32a9bb90d 100644 --- a/modules/forum/forum.install +++ b/modules/forum/forum.install @@ -442,3 +442,16 @@ function forum_update_7003() { /** * @} End of "addtogroup updates-7.x-extra" */ + +/** + * Update {form_index} so that only published nodes are indexed. + */ +function forum_update_7011() { + $select = db_select('node', 'n') + ->fields('n', array('nid')) + ->condition('status', 0 ); + + db_delete('forum_index') + ->condition('nid', $select, 'IN') + ->execute(); +} |