summaryrefslogtreecommitdiff
path: root/modules/forum/forum.install
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2012-05-02 15:01:31 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2012-05-02 15:01:31 -0700
commit9879d29f731570a34b24c4eae4cc8cb30c7a5082 (patch)
treeb28fe3274dca5fb773ec91718f30a617b275fd2e /modules/forum/forum.install
parentb1f01b20ea67f6494421765b17afa17394e7a4b0 (diff)
downloadbrdo-9879d29f731570a34b24c4eae4cc8cb30c7a5082.tar.gz
brdo-9879d29f731570a34b24c4eae4cc8cb30c7a5082.tar.bz2
Drupal 7.13
Diffstat (limited to 'modules/forum/forum.install')
-rw-r--r--modules/forum/forum.install13
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();
+}