From 9879d29f731570a34b24c4eae4cc8cb30c7a5082 Mon Sep 17 00:00:00 2001 From: webchick Date: Wed, 2 May 2012 15:01:31 -0700 Subject: Drupal 7.13 --- modules/forum/forum.install | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'modules/forum/forum.install') 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(); +} -- cgit v1.2.3