Closed (fixed)
Project:
Drupal.org CVS applications
Component:
new project application
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
30 Sep 2009 at 14:07 UTC
Updated:
7 Oct 2019 at 09:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Gigya commentedI need a cvs password.
When I try to login to CVS with Tortoise - I get the following error :
cvs [import aborted]: no such user Gigya in CVSROOT/passwd
Error, CVS operation failed
But I have user called GIgya.
What am I doing wrong ?
Comment #2
Gigya commentedComment #3
Gigya commentedComment #4
Gigya commentedAttached is my zipped module code.
Comment #5
avpadernoPlease change only the status, when you upload new code; other metadata are not supposed to be changed from the applicant.
Comment #6
avpadernoThere is a better way to include a PHP file; anyway, where is the variable
$base_pathdefined?The translatable string includes the URL; it would be better to use a placeholder.
subscribeto? The full sentence needs to be rewritten.
<br />they should not use.Comment #7
Gigya commentedFixed it all.
Please review.
Comment #8
avpadernoThe first argument of
t()must be a literal string, not even a constant.There is no need to add
<br />; the text is automatically formatted from the theme used.l()is not used togethert(); that is reported in the documentation page fort(), which reports the following text:In Drupal, only the first word is in capital case; the other words (if they are not an acronym, or a proper noun) are written in lower case.
There is no need to use that value, as it is the default one.
Schema descriptions should not be passed to
t()anymore.There is a better way to include PHP code, in Drupal.
Comment #9
avpadernoComment #10
Gigya commentedFixed it all.
Please review and let me know.
Thanks a lot for your help.
Comment #11
Gigya commentedFixed it all.
Please review and let me know.
Thanks a lot for your help.
Comment #12
avpadernoThe Drupal variables used from the module still use a name that is not respect the namespace of the module; some of the constant defined from the module are then not used anymore.
Comment #13
Gigya commentedDone.
Please review and let me know.
Thanks again for your help.
Comment #14
avpadernoThe first argument of
t()must be a literal string, not a dynamic string; apart that, why would you need to translate in another language what it seems to be JavaScript code?It's not clear the reason of the check done by the IF-statement; why doesn't the code call directly
replaceWildCards()(what is the name of the module?)?What is wrong with that code?
Why does the code use a database table to contain values that it deletes all times? A module settings should be saved in Drupal variables. Also, the SQL query is a concatenation of strings, which should be avoided (
db_query()support the use of placeholders).If that is the main API for the module (which I take it is the most important function for the module), then you need to develop the module more, before we can review it.
The code is using
hook_form_alter()to save the values of a form displayed from itself. That is not the way to do it.Comment #15
Gigya commented1. I've changed all the constants names, variables names and functions names.
Is the module name still not respected ? If so, please be specific.
2. The "output" of the gigyaToolbar module is a toolbar that can be displayed ONLY at the bottom of the page (a footer block).
In this module, when enabled, there's no need to add a block title (although it's possible to add it).
So, I don't understand what you meant by writing : "...titles given to the blocks are too generic..."
3. Fixed.
4. The value of the status message should be added to the block's content (javascript), ONLY if it's different from 'Default Status Message' and different from an empty string.
When the value of the status message is either 'Default Status Message' or empty string, the block's content should and will remain unchanged.
That's the reason for the check.
The 'replaceWildCards' function was replaced with 'gigyaToolbar_replaceWildCards' function.
5. Fixed - I removed the function.
6.
a) Fixed.
b) The module's settings are saved in Drupal variables, but I also need the saved settings to be available, whenever the server is restarted and that's why I need to save them in the database.
The gigyaToolbar table contains ONLY ONE record and will always contain EXACTLY one record.
Whenever the administrator changes one of the fields (it's very rare, the admin will usually change it once), I delete the current record and insert a new one.
The administrator can change all the fields and I don't care about the previous settings, because the new ones are the ONLY valid data from this point of time.
If there's a better way to do it, please tell me about it.
7. Fixed. - I removed this redundant function. Our module works well and we do not need to develop it more at the time.
8. Fixed.
Comment #16
avpadernoI think that is already done from Drupal; there is no need to add that code.
If the block must be placed only on the footer, why didn't you implement
hook_footer()? You cannot force a block to be placed in the footer.If the module is using just a block, why is it declaring a second block that has a generic title like (that is the title I was referring to)?
The code is returning the content for a second block, and the title of that block is a generic .
The user is able to set the content of the block, but then what the user entered is not used when the block is rendered.
If the block is not shown, why is it defined?
You have the settings in a database table, and then you copy them in Drupal variables. Why? Or the code uses a database table, or it uses Drupal variables.
Drupal variables are saved when the server is restarted; why do you think you need to save the settings in the database? Drupal variables are saved in the database too; they are not getting lost when the server is restarted.
You can check Drupal code, and you will notice that Drupal never creates a database table that is supposed to contain just a row.
When you commit code in Drupal.org, you don't change it only when you need to change it for your own use, but you could get feature request from other people. In such cases, you cannot reply them ; if that is what you think, then you can keep your module in your own server, as it is not a must to deploy a module on Drupal.org CVS.
That is a debug function that is not even called from module code; it should then be removed, first because it is debug code, and second because it is not used from the module.
Comment #17
Gigya commented1. I checked it again and it does NOT occur by itself.
I must add it or it will NOT be deleted.
2. Fixed - Implemented hook_footer function ( gigyaToolbar_footer )
3. Fixed
4. Fixed
5. Fixed
6. Fixed
7. OK. I understand.
8. Fixed
Thanks a lot again.
Comment #18
Gigya commentedPlease check.
Comment #19
avpadernoThe file gigyaToolbar.admin.inc is being included, but it doesn't seem the function is using any code from that file.
Also,
isset($conf[GIGYATOOLBAR_PARTNER])seems useless; in normal code, it's enough to callvariable_get().Comment #20
Gigya commentedI added the module_load_include, so that gigyaToolbar_footer function will be able to use the constants defined in gigyaToolbar.admin.inc ( A scope issue ).
Thanks a lot again.
Comment #23
avpaderno