I use this module on my site vigillar.se together with my Vote up/down module and I really like it!

I wanted to contribute in some way so I made the code follow the Drupal coding standard a little closer. There should be no change in how the module function, at least I hope so. I have looked at things like:

* Two spaces in place of one tab
* Always a space after a colon
* valid xhtml <br /> not <br>
* Avoid using "..." if not necessary, use '...' instead
* Only use uppercase at start of sentence/string
* Made all comments in the following style
/**
* Comment here.
*/

CommentFileSizeAuthor
#1 cre_clean_01_patches.zip16.46 KBfrjo

Comments

frjo’s picture

StatusFileSize
new16.46 KB

And the patch that I missed to add to the first post.

Scott Reynolds’s picture

Outstanding! Thank you for this. I know you mention this earlier and I managed to forget about out. Thank you for taking the time to clean up my work. Its pretty now.

frjo’s picture

Just a reminder to make sure you noticed that the file above includes patches for all the module files.

cre:
cre.module_clean_01.patch
recommendation_modules:
comment_recommendation.module_clean_01.patch
node_recommendation.module_clean_01.patch
user_recommendation.module_clean_01.patch

I also think it would be best to rename "Recommendation Modules" to something like "recommendation_modules" without spaces and uppercase.

hickory’s picture

Status: Needs review » Closed (fixed)