Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
14 Mar 2012 at 11:17 UTC
Updated:
28 Jun 2012 at 07:51 UTC
The Bits on the Run module allows its users to add videos from the Bits on the Run online video platform to Drupal nodes.
It allows for the configuration of multiple video players and presents the user with a widget for quick insertion of videos into the nodes. The widget enables the user to quickly search and select his videos, or to upload a new video and immediately embed it into the node. Options are presented to add this widget to custom nodes.
git clone --branch 7.x-1.x botr@git.drupal.org:sandbox/botr/1471628.git
Comments
Comment #1
patrickd commentedwelcome,
I see you're already working on your coding style issues detected by autmated tools, great! :)
You're readme already looks pretty good but your project page could be better.
Maybe you should put all assets (images, css, js) into a misc directory (just to have a clean module root).
You can also get a review bonus and we will come back to your application sooner.
regards
Comment #2
botr commentedThanks for the quick reaction!
The assets were moved to a misc directory.
The project page will be improved.
Comment #3
targoo commentedHello
I would recommend the following changes :
1) botr.install
I will no put html tags in translatable content.
could become :
$message = $t("The Bits on the Run plugin works better when the !url is installed.", array('!url' => l($t('PHP cURL library'), "http://php.net/manual/en/book.curl.php")));Same issue in botr.module with different description fields.
2) botr.module
Remove empty description
3) botr.module
function botr_uninstall() should be in botr.install. Please move the function.
Comment #4
botr commentedThanks for your suggestions.
I have changed the module accordingly.
Comment #5
alesr commentedThere are some array aligments that are not by Drupal coding standards:
It would be better here if you concatenate those strings:
like this:
I would suggest to keep the name "Bits on the Run" instead of "Bits on the Run Module For Drupal".
Otherwise the code looks good.
Comment #6
botr commentedThanks for the response.
I fixed the alignment and replaced the mentioned inline variables by string concatenations.
Comment #7
novalnet commentedHello ,
Manual Review :
api.php:
1. If possible, use your module name as prefix to file name.ex:botr_api.php
2. Please add module/file name as prefix to the functions to avoid name clashes.ex:api_call.
3. Please try to avoid "private" and use "protected" instead.
4. Also variable prefixed with underscore _ is discouraged. so try to avoid this.ex:$_url.
botr.module :
1.you are using l() to create link markup, its pretty good.
2.you can append variables with the string, $url .= "?exp=$expires&sig=$signature" can be $url .= "?exp=" . $expires . "&sig=" . $signature;
3.If possible, don't put any HTML into t() functions.
4.It seems, there are lot of errors in PARREVIEW.Please check it.
Thanks
Comment #8
botr commentedThanks for your review.
I will get to it as soon as possible.
The api.php file is of a different format than the rest of the module, because this is a standard Bits on the Run PHP API kit. For this reason, style checks fail on this file. If possible, I would prefer not to change too much of this, to be compatible with future API kit updates. I will fix your items, because they make a lot of sense, but I would prefer not to change the style, because this makes it hard to tell differences between versions.
Comment #9
botr commentedThe module was changed according to the review from Novalnet.
The API Kit was modified to fit Drupal coding standards and parreview was used to fix some other problems that existed.
Let's hope the next review will be the last one :)
Comment #10
jthorson commentedbotr.install:
The <a> tag here looks a little redundant.
Drupal best practice is to specify the exact variable names, rather than using 'LIKE', as you can not guarantee that another module isn't using a similarly named variable. This scenario has become more common with the number of modules in contrib which extend other modules. While the likelyhood of a conflict with your particular case may be low, we do encourage using a consistent best practice across all modules.
Otherwise, looks good!
Comment #11
misc commentedThanks for your contribution, botr! Welcome to the community of project contributors on drupal.org.
I've granted you the git vetted user role which will let you promote this to a full project and also create new projects as either sandbox or "full" projects depending on which you feel is best.
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
As you continue to work on your module, keep in mind: Commit messages - providing history and credit and Release naming conventions.
Thanks to the dedicated reviewer(s) as well.
Comment #12
botr commentedThank you for the review jthorson.
I will fix the described items before promoting this project.
Also, thanks again to the other reviewers!