The message text for commons_posts_post_created in commons_posts.features.inc contains a few extra paragraph tags and line breaks.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | commons_posts_message-2003622-8.patch | 2.62 KB | devin carlson |
| #7 | https://drupal.org/files/commons_posts_message-2003622-7.patch | 2.67 KB | stupiddingo |
| #2 | commons_posts_message-2003622-2.patch | 2.14 KB | stupiddingo |
| #1 | commons_posts_message-2003622-1.patch | 1.56 KB | stupiddingo |
Comments
Comment #1
stupiddingo commentedPatch to commons_posts.features.inc
Comment #2
stupiddingo commentedComment #3
stupiddingo commentedRemoving tag (need to slow down here)
Comment #4
BarisW commentedThanks for the patch. Works perfectly.
Comment #5
BarisW commentedOh, the only thing is that is misses an upgrade path (hook_update) to revert the Messages.
Comment #6
BarisW commentedComment #7
stupiddingo commentedNot so sure about this. "Learn hook_update_N()" is in my notes from Portland...
Comment #8
devin carlson commented#7 looks great, thanks for the patch!
The update just needs one tweak; since only the message type is being modified, field instances shouldn't need to be reverted.
Comment #9
devin carlson commentedReviewed #7/8 through a fresh install of Commons and by upgrading an existing Commons site. In both situations I didn't encounter any issues and the extra WYSIWYG markup was successfully removed.
Comment #10
devin carlson commentedCommitted #8 to Commons Posts 7.x-3.x.
http://drupalcode.org/project/commons_posts.git/commit/ee0cbf0
Comment #11
stupiddingo commentedThanks BarisW for the review! And thanks Devin for your explanation and assist. I now understand what the field_instance call was doing! It wasn't intuitive to me reading the API.
We'll call hook_update_N achievement unlocked. Time now to hook_update our workflow at the office.