Closed (fixed)
Project:
Drupal.org CVS applications
Component:
new project application
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
23 Feb 2010 at 17:51 UTC
Updated:
13 Jan 2019 at 14:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Daniele commentedThis is the development version of the module, some fix are required and the documentation need some improvements.
Comment #2
avpadernoHello, and thanks for applying for a CVS account. I am adding the review tags, and some volunteers will review the code, pointing out what needs to be changed.
As per Apply for contributions CVS access, the motivation must be expanded to add more details about the module features, and compare the module with similar modules already in CVS.
Comment #3
Daniele commentedThere is only another "similar" module (dixerit) that refer to the old service and the old brand, some implementation was changed, the commercial name of the service too. We talk to Paul (the author of the old module) and he agree with the new module (he is between the authors of the new too). If is possible to change the name of the old module and overwrite with this one (with the Paul's agree) is the same without create another one.
For the feature is better to take a look at the service site http://voice.phiware.com that is growing in this days (we are developping the feature and the module at the same time).
If you need more info on the module don't hesitate to ask.
Comment #4
avpadernoComment #5
zzolo commented@Daniele, thanks for the application. The following points are just a start and do not encompass all of the changes that may be necessary for your approval. Also, a specific point may just be an example and may apply in other places.
The menu title and description do not need to be run through t().
After that you can choose where to display the button by selecting the block position or simply by adding '<?php module_invoke("phiwarevoice", "button"); ?>'This is not good for many reasons. No one should be calling module_invoke directly. Also, your button needs to be run through the theme layer, as suggested above. Also, you should make a API function that will be wrapper to all this.
Overall, the module seems simple enough. I think you need to really read the coding standards and the module guidelines. There are some key Drupal coding paradigms you are missing. Good job, nonetheless and keep up the good work.
http://drupal.org/developing/modules
--
Note: Please be patient with the CVS application process. It is all done by volunteers. Our goal is not to be arbitrarily slow or meticulous. Our goal is to get you CVS access and ensure that you are and will become a more responsible Drupal contributor. For a quick reference on what I look for in a code review, please see this article on what I look for.
Comment #6
avpadernoComment #7
avpadernoThere have not been replies in the past week. I am marking this application as .
Comment #8
Daniele commentedSorry if I did not respond for a lot of time...
Thanks for all the suggest, I'm reviewing the code. I will post the modified source.
Comment #9
Daniele commentedBack from holidays... just made some modifications to source, when it will be ok I will create the new Project and ask to Paul (the old module owner's) to deprecate the old one.
The only points that I don't understand well are 5, 8 and 9, I read some docs but probably I should give more attention to these. In the meanwhile you can check the other modifications.
P.S. for the remaining task if anyone can give me some hints it will be appreciated.
TIA,
Daniele
Comment #10
avpadernoRemember to change status, when you upload a new version of the code.
Comment #11
zzolo commented@Daniele, thanks for the application and patience. The following points are just a start and do not encompass all of the changes that may be necessary for your approval. Also, a specific point may just be an example and may apply in other places.
Please use the hook reference when implementing a hook. See coding standards:
?>at the end of PHP files.You should be using menu_get_object().
phiwarevoice_render()needs to be a theme function.--
Note: Please be patient with the CVS application process. It is all done by volunteers. Our goal is not to be arbitrarily slow or meticulous. Our goal is to get you CVS access and ensure that you are and will become a more responsible Drupal contributor. For a quick reference on what I look for in a code review, please see this article.
Comment #12
Daniele commentedHi zzolo,
thanks for all your hints, and don't worry about the time, I know that your effort is totally voluntary and free.
I've done all the modifications that you request and read some docs about modules, I hope that now the module is at good point to be accepted. If so I will be happy to create a new project (I already asked do the old module maintainer to deprecate it). I have just two question for you:
1) Why (as you pointed me at the comment #5) is not good to invoke directly the method 'module_invoke'? If I don't want to use it as a block and use directly through the template file how can I do? Obviously any hint will be appreciated.
2) The link with inline JS is the service default implementation (to avoid some browser resize when popup will be open). Is it okay? There is a better way to have the same result?
P.S: Tell me if there is problem with the Theme implementation (I read a lot of pages and many modules to try to understand it...).
Comment #13
zzolo commentedmodule_invokeis used for invoking hook for a specific module. But you are not defining a new hook (another module cannot interact with this process), so you would just offer an API function. But in this specific case, you just want to provide a theme function for coders. So, they would just calltheme('phiwarevoice_render', $node)to get the output, and this would allow any overrides of the theme function to happen.Typo and empty dependencies. Not sure how the empty dependency thing will react in Drupal, so I would say this is necessary to change.
Not a big deal, but should be:
This should be in a theme function. Also, inline CSS is bad for the same above reasons as JS, but also because they are not overridable.
Real close! Just a couple things holding this back. It should be fine next time around.
--
Note: Please be patient with the CVS application process. It is all done by volunteers. Our goal is not to be arbitrarily slow or meticulous. Our goal is to get you CVS access and ensure that you are and will become a more responsible Drupal contributor. For a quick reference on what I look for in a code review, please see this article.
Comment #14
Daniele commentedHi,
sorry for the absence for a lot of time...
BTW today I take some time to try to finish the module.
I worked on all the points except for part of 7, the css for that div should not be overridable cause the div content is simple the node title repeated and it does need to be showed.
Tell me if there are still some parts that needs work.
Daniele
Comment #15
drupalshrek commentedLooks fine to me!
The only thing I see is the $Id$ in the README.txt which I don't think is needed there (confusing I know), but if that's the only thing I don't think there's a need to rework the module just for that.
I'm not an expert and don't have CVS rights, so you'll have to wait for someone else to check further.
Comment #16
Daniele commentedAny news? :)
Comment #17
zzolo commentedHi @Daniele. Sorry for the delay. I assuming from your comment above, you did not change the that output to a theme function. Though I do understand what you are saying about it just being a note, but the whole idea of using the theme layer is to give complete control to a themer about what is outputted, and IMO, this includes even small bits like this. Please consider changing this.
Congratulations, you have been approved. Please read the following resources to make sure you know how to use CVS and the specifics to the Drupal CVS infrastructure, as well as how to be a good module maintainer on Drupal.org. The Drupal community is very large and dynamic; we welcome you as a module maintainer and hope that you embrace and challenge the Drupal community and continue to contribute.
Thanks to the following people who helped review this application, it is very appreciated:
--
Note: Please be patient with the CVS application process. It is all done by volunteers. Our goal is not to be arbitrarily slow or meticulous. Our goal is to get you CVS access and ensure that you are and will become a more responsible Drupal contributor. For a quick reference on what I look for in a code review, please see this article, or read the handbook page on how to review for reference.
Comment #18
Daniele commentedWow! Thanks! :)
Comment #21
avpaderno