We're looking at extending the functionality of nodehierarchy for a large project, but we'd like to be able to submit patches to the module without large amounts of reformatting or learning the coding conventions of the nodehierarchy module. I'd like to suggest that this module be made to follow the Drupal Coding Standards, which are based on the PEAR standards.
I know these patches are large, but consistency in coding standards would really, really be appreciated as we look to be submitting patches on a regular basis. They make absolutely no changes to existing code or comments, other than reformatting to follow the standards. Some changes:
- Tabs replaced with spaces.
- Extra whitespace removed from end of lines.
- Comments begin with capital letters and end with periods.
- PHPdoc used for functions, properly formatted.
- Constants TRUE and FALSE are set to capitals.
- Extra spacing removed from function calls, this was very, very common (i.e. my_function( $param, $param2 ));
- Various formatting problems reported by coder.module
| Comment | File | Size | Author |
|---|---|---|---|
| nodehierarchy_cleanup6.patch | 89.5 KB | quicksketch | |
| nodehierarchy_cleanup5.patch | 79.45 KB | quicksketch |
Comments
Comment #1
ronan commentedWow, that's a lot of work. Thanks a million for that. I'll apply and review these patches and get them committed as soon as I can.
Ronan
Comment #2
ronan commentedI've reviewed, tested and committed both patches to 5.x-1.x-dev and 6.x-1.x-dev, thanks again for all this hard work
Ronan
Comment #3
quicksketchThanks Ronan!
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.