Closed (fixed)
Project:
Drupal.org CVS applications
Component:
new project application
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
6 Oct 2009 at 18:30 UTC
Updated:
2 Oct 2019 at 09:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jcmc commentedHere the files.
Thanks
Comment #2
avpadernoThe previous application was #531764: jcmc [jcmc].
Comment #3
jcmc commentedI found the information the Drupal.org CVS doesn't allow to commit LICENSE.txt files.
Here the packages without the LICENSE.txt files.
Comment #4
jcmc commentedI found some errors and I fixed it.
fixes in gallery_assist
---------------------------
file gallery_assist.install
line 248
- - - 'type' => 'tinyint',
+++ 'type' => 'int',
in hook_uninstall
+++ module_invoke('gallery_assist', 'delete_ .......
file gallery_assist_ic
+++ dependencies[] = imageapi_gd
fixes in gallery_assist_lightboxes
-------------------------------------------
the file gallery_assist_lightboxes.install has been added.
Comment #5
jcmc commentedOh maybe a error by upload, here the gallery_assist_ic package.
Comment #6
avpadernoWe just review a module/theme per applicant; choose the one you want to be reviewed.
Comment #7
jcmc commentedThe principal module is gallery_assist, the other are submodule.
Comment #8
avpadernoComment #9
avpadernoThe string is not completely translated; the first argument of
t()needs to be a literal string, or the script to extract the strings to translate will not extract anything.If the variable is empty, then the user will just see an empty form with two buttons (, and ), which is pretty useless.
Betwen?
See my previous note.
Is the module installed?
Apart that the description doesn't seem much useful, do you see anything wrong with that code?
What is wrong with that code?
Schema descriptions should not be passed to
t()anymore.Revition?
.
The description is the same for all those fields.
Why didn't you changed the schema for that field in
gallery_assist_schema()? That SQL query is then making an assumption about the database engine being used.See , , , . There is also something else wrong (see the call to
drupal_set_message().There is no need to initialize Drupal variables on the installation function.
It is sufficient to use
db_query("DELETE FROM {variable} WHERE name LIKE 'gallery_assist\_%'", $string).What is wrong with that code?
The code is altering a form it defines through
hook_form_alter(). Why didn't the code set the submission function directly in the function that defines its form?Witch position? Are there any witches around?
Weight is an integer, not a floating point value.
The code doesn't check if the module is enabled.
What is wrong with that code?
Comment #10
jcmc commentedmany Thanks,
I've fixed step by step all post points but perhaps I have overlooked something.
Excuse my english.
Here the fixed files
Comment #11
avpadernoRemember to change the status, when you upload new code.
Comment #12
avpadernoCan you say what is wrong in that code?
There is no need to use a placeholder with a string that is not dynamic.
Every string that appears in the user interface must be translated.
Rather than keeping to check if the module is enable (which is not done from the above code), it would be better to add it to the dependencies of this module.
It would be better to use a placeholder.
l()is not used togethert(); that is reported in the documentation page fort(), which reports the following text:That line needs to be removed.
There is no need to set the default value for Drupal variables. What is the second parameter of
variable_get()?$togglecontains a string used in the user interface, but it is not translated.I let you guess what is wrong with the code.
Comment #13
jcmc commentedThanks again.
I have fixed all points of your last post. Only tow points I leave like as they are. Here the reasons.
Point 4 (imagecache check)
One feature of this module is, that it works without image cache.
You can use ImageCache but it is not necesary.
The first post about you have right and i add the check, but not now. On line 40 is the variable "use_imagecache" the most important condition of the if construct and this variable is only true, when the module "gallery_assist_ic" is active.
Point 8 (variable_set)
Galerie-Assist has to manage many values.
Someone said - The settings system is a fantastic Drupal feature but do we have to be careful not to overload it.
So I have decided to reduce the number of variables of Gallery Assist to an possible minimum to. I use 2 settings variables pro content type with assigned gallery funktionality.
The values of the 4 variables "default", "default_data", "gallery_assist_gallery_assist" and gallery_assist_gallery_assist_data" should be set by the installation. It is necesary to a better structure for the other submodules (remember, I send 3 the first time). Anderenfalls bräuchte ich viel mehr code zu schreiben und das ganze script würde sich verkomplizieren für nichts.
The values of the 4 variables "default", "default_data", "gallery_assist_gallery_assist" and gallery_assist_gallery_assist_data "should be set by the installation. It is necesary for a better structure for the other submodules (remember, I send 3 the first time). Otherwise, I need to write much more code and the whole script would be complicated for nothing.
Comment #14
avpadernoThe code is executed only when imagecache.module is enabled (the check is done before the function containing the above mentioned code is called). What I previously reported is then not exact.
#title,#options, and#description).Probably, the second argument of
file_scan_directoryshould be'.*', if you are not looking for files with a name of just one character. The third argument should at least contain the default values (array('.', '..', 'CVS')).Comment #17
avpaderno