diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2012-05-02 15:04:41 -0700 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2012-05-02 15:04:41 -0700 |
commit | cdb0df93be92c8cb68e1a5d3badbdc4e1be148da (patch) | |
tree | 4639d784e81cb085c8e107b1377c9674e296e125 /modules/forum/forum.install | |
parent | ef788926008f96942eaeac0faa4d7b4776b0f25a (diff) | |
parent | 9879d29f731570a34b24c4eae4cc8cb30c7a5082 (diff) | |
download | brdo-cdb0df93be92c8cb68e1a5d3badbdc4e1be148da.tar.gz brdo-cdb0df93be92c8cb68e1a5d3badbdc4e1be148da.tar.bz2 |
Merge branch '7.12-security' into 7.x
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(); +} |