Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I was curious about this module, so to learn about it I did a little code cleanup, adding missing @file declarations and also changed the .info file, I think it's roughly correct. Patch coming here...
Comment | File | Size | Author |
---|---|---|---|
#5 | webid-codecleanup-1443576-5.patch | 51.79 KB | HongPong |
#1 | codecleanup-1443576-1.patch | 15.16 KB | HongPong |
Comments
Comment #1
HongPong CreditAttribution: HongPong commentedPatch attached. Neat module! Not sure if I have the patch formatted right, it's been a little while.
Comment #2
scor CreditAttribution: scor commentedGreat! thanks @HongPong and welcome to the WebId project! The coding standards fixes in the your patch look good for the most part.
the file directive in the .info file is only for files which include classes, like typically .test files. I'm not sure all these files actually contain classes.
the script and stylesheet directives will force the .js and .css files to be included in all pages when the module is enabled, I'm not sure we want that. I believe right now they are only included when need. Needs more investogation on whether it's best to include them systematically or not.
make sure there are no white spaces. http://drupal.org/project/dreditor can help you to find these very quickly.
Comment #3
HongPong CreditAttribution: HongPong commentedAh thanks for the feedback. i will try to roll another this weekend. I am wondering if you have heard about the OStatus & Federated General Assembly project (projects.occupy.net) which is looking to implement WebID and OStatus - figured this might be good place to start looking into it!
Comment #4
scor CreditAttribution: scor commented@HongPong yeah, actually I joined the FGA group a few weeks ago. Keep up the great work! By the way, have you tried any of the WebID modules?
Comment #5
HongPong CreditAttribution: HongPong commentedI haven't tried any of the modules yet. I think after getting a little more handle on what's out there I will start trying to build it.
I took out the .info changes except for referencing the .module file. I also cleaned up the indents and adjusted the comments around the function declarations a tiny bit.
Comment #6
scor CreditAttribution: scor commentedThanks @HongPong for providing this patch, and sorry for the delay in committing it. Some hunks didn't work but I've committed what worked.