Closed (won't fix)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
16 Dec 2011 at 00:50 UTC
Updated:
31 Aug 2012 at 10:24 UTC
1. This plugin enables users to share your content via MMS using the Mogreet Messaging Platform. This is different from most of sharing plugins which often enable users to share content on social websites.
You can see the plugin in action on the screenshots attached.
2. Link to the project: http://drupal.org/sandbox/jperichon/1371270
3. git clone --branch master jperichon@git.drupal.org:sandbox/jperichon/1371270.git moshare
4. This plugin is for Drupal 7.
| Comment | File | Size | Author |
|---|---|---|---|
| moshare_settings.png | 36.58 KB | jperichon | |
| moshare_in_action.png | 83.43 KB | jperichon |
Comments
Comment #1
patrickd commentedYou got some coding standart issues (See http://ventral.org/pareview/httpgitdrupalorgsandboxjperichon1371270git, you can use this site your self to re-test)
If you got any questions on this, please ask!
At least the following issues should be solved before switching back to 'need review':
You implemented a function called
sanitize. You should rather use api cleaning function for this (See http://api.drupal.org/api/drupal/includes--bootstrap.inc/function/check_...)You can also think about using dbtng queries instead of sql-query strings (the example module gives you a nice instruction about this http://drupal.org/project/examples)
You've only feeee....eewww comments in your code, please do some more commenting so other developers don't have to re-think your code. (There is a lot of space to add many many comments, yes I love comments)
This calls drupal_get_form() twice what is really not necessary, please read the documentation about this and have a look on the example module.
Furthermore I'm not shure if your module has enough code to determine your skills seriously, maybe you could add some more functionality?
Comment #2
jperichon commentedThank you for you quick review!
Here are the modifications I made:
- fixed the coding standard issues
- switched to a version specific branch (7.X-1.x)
- added a README.txt
- removed the LICENSE.txt
- used an API cleaning function instead of my own sanitize()
- used dbtng queries instead of sql-query strings
- fixed the duplicate call to drupal_get_form()
- added more functions and inline comments
Thank you for your time!
Comment #3
jperichon commentedComment #4
afox commentedHi @jperichon,
first of all, thanks for your submission. I didn't go through the module looking for coding standards misses, so I suggest that you look over it yourself with the coder-module. However I looked at your module and here's what I found:
See http://api.drupal.org/api/drupal/includes--common.inc/function/drupal_ad... for more info.
use:
For more information, goto http://api.drupal.org/api/drupal/includes--common.inc/function/url/7
variable_get($name, $default = NULL)for getting the settings from Drupal's variable system andreturn system_settings_form($form)to insert a submit button and save the settings into the variable table.Example:
Those things said, you don't really need the install -file either as you can do all this with just variable_set() and variable_get(). I also strongly suggest that you'd make the image files and javascript files available locally. Also, how is this external JS-library licensed? Can you just pick it up? By the least, you will need to inform the user that you are using the library externally from another site. See http://drupal.org/node/422996
Generally speaking, I do agree with @patrickd that this is a very small module that provides very little functionality as it is. If I understood from quickly looking at mogreet.com, they have more API's and libraries than just this one. Maybe create a larger set that includes integrations from other mogreet libraries?
The other option is that it would be better off merged to some other, longer-standing sharing module?
Thank you for your effort! Hopefully we'll get a great module from you!
Comment #5
jperichon commentedComment #6
klausiClosing due to lack of activity. Feel free to reopen if you are still working on this application.