Closed (won't fix)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
2 Aug 2012 at 23:08 UTC
Updated:
15 Dec 2012 at 11:37 UTC
Jump to comment: Most recent file
Comments
Comment #0.0
sirviejo commentedtypo
Comment #0.1
sirviejo commentedanother typo
Comment #1
primsi commentedI really can't find any major issues with this module. Perhaps just a thought: you could implement your own theme function so users could change the markup of the module.
Cheers.
Comment #2
sirviejo commentedHey thanks for taking the time to review the module. My only concern with adding the themes functions is that a user can get rid of the basic markup to provide an ordered or unordered list. What do you say?
I am thinking that maybe its a good idea to allow all the attributes that
<ul>and<ol>accept in the settings form for this formatter, because this can add more flexibility to those that will use this module.Comment #3
primsi commentedI guess users can "getting rid of the basic markup" in a lot of places across Drupal, but that makes it flexible. Although your idea is also nice. Perhaps you could implement both: more "advanced" users could use the theme override (perhaps add a wrapper), those who want to build their sites thought the UI could fill in the form.
Cheers.
Comment #4
sirviejo commentedYou are totally right, this morning i can't imagine an escenario where someone wants to change the ''basic markup" and you just mentioned one (add a wrapper). So now i understand that it worth adding it.
I am going to add this asap. and then i will add the forms settings that i mentioned.
Comment #5
sirviejo commenteddone, please check the latest version and you will see how you can modify the exising layout!
Comment #6
primsi commentedThat was fast :)
So here are some thoughts:
Probably theme_field_group_list_group_wrapper should be enough. There is no need for theme_field_group_list_field_wrapper. I think you can safely print li-s inside theme_field_group_list_group_wrapper.
You are using #prefix, #suffix inside your theme functions. I think that something like this:
is more common practice in Drupal. Perhaps you should get a second opinion on that.
I am not sure if you need a theme function for the help. I looked at some core implementations of hook_help and none of them implements a theme function for the help message and they have far more complex help than yours.
Cheers.
Comment #7
sirviejo commentedI agree with you that maybe the theme function for the help is an overkill, i can rework it to return it from the hook_help().
Can you explainme a little more your approach to avoid using #prefix and #sufix? Because i cannot see another way to wrap elements appropiately.
Thanks.
Comment #8
primsi commentedLike this:
You would then have to change field_group_list_field_group_pre_render into something like this:
But like I said, perhaps you should get a second opinion on that. I was just trying to look to this theme function like a themer.
Comment #9
sirviejo commentedPrimsi, again thanks for your dedication. This was a busy week for me, but finally i can test your approach. Unfortunately when i made the changes all the grouped fields are no longer visible in the page.
Please see the attached patch with your suggested changes.
Comment #10
sirviejo commentedthe patch was empty here is the correct one.
Comment #11
Milena commentedI've followed instructions on your project page and there is one more thing probably should mention.
Many users may choose to enable your module after they added all the fields and fieldsets. Sometimes they add fieldsets not on Manage Display page, but on Manage Fields Page. There is no option on Manage Fields to add your type of Fieldset. What's more - if user wants to have the same structure he or she should clone fieldsets on Manage Display page rather than add them again.
I think it's worth mentioning on the project page and it will be good if I could add List display on Manage Fields (so they will show on entity add / edit screen also).
I do not understand why help page has it's own .tpl.php file. It allows themers to change help page structure and texts. As was said even more complex modules do not do that.
On your tpl.php file you have:
print t('About Fields Group List')You should always place semicolon at the end of the line, even if you use ?> on the same line.
In your comments you should start with a capital letter and end with a full stop (for example in @file block).
I believe these are not blockers.. Your module does what you said, I have not found security issues (although I'm pretty new in reviewing project applications) so I believe it is RTBC.
In the meantime:
http://ventral.org/pareview/httpgitdrupalorgsandboxsirviejo1710684git
There is still a master branch, make sure to set the correct default branch: http://drupal.org/node/1659588 . Then remove the master branch, see also step 6 and 7 in http://drupal.org/node/1127732
Comment #12
sirviejo commentedThanks milena for taking the time reviewing my module.
Milena what are the next steps? Can you approve my module or should i wait for others to review it?
Comment #13
Milena commentedHi,
As I'm not Git Administrator I cannot promote your module to full project. The next step is waiting for one of Git Administrators to approve your module or set it once again to needs work if they find something wrong.
I believe you can quicken this process by Review bonus.
Other helpful resource is http://drupal.org/node/539608.
Good luck :)
Comment #14
sirviejo commentedthanks milena, i will start reviewing other modules to acquire the bonus
Comment #15
klausiComment #16
klausiThis might be suitable to go directly into field_group, right? Please open an issue in the field_group queue to discuss that and get in contact with the maintainer(s). We prefer collaboration over fragmentation to limit the search hassle for site builders, so maybe this is suitable to be in one module. Please get back to us if that is not appropriate or close this issue if it was successful.
Comment #17
sirviejo commentedHi klausi i try to contact the mantainers without any luck. But i am opening a feature request and see what they said. Here is the Feature request http://drupal.org/node/1751016
Comment #18
klausiClosing due to lack of activity. Feel free to reopen if you are still working on this application.
Comment #18.0
klausitypo