Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

delicious: Fix incorrectly assigned filter values

  • Loading branch information...
commit 26eef8c80c5517ce33a201bc311f57a9a16960b9 1 parent 8cf59c0
@teranex authored
Showing with 22 additions and 0 deletions.
  1. +22 −0 profiles/budts_be/budts_be.install
View
22 profiles/budts_be/budts_be.install
@@ -114,3 +114,25 @@ function budts_be_update_7100() {
full_feature_revert('budts_be_core');
}
+/**
+ * Fix incorrectly assigned filter values for delicious bookmarks
+ */
+function budts_be_update_7101() {
+ $rows = db_update('field_revision_body')
+ ->fields(array(
+ 'body_format' => 1,
+ ))
+ ->condition('bundle', 'delicious_bookmark')
+ ->condition('body_format', '0')
+ ->execute();
+
+ $rows += db_update('field_data_body')
+ ->fields(array(
+ 'body_format' => 1,
+ ))
+ ->condition('bundle', 'delicious_bookmark')
+ ->condition('body_format', '0')
+ ->execute();
+
+ return 'updated rows: '.$rows;
+}
Please sign in to comment.
Something went wrong with that request. Please try again.