Sandbox project page link:
https://drupal.org/sandbox/kari.kaariainen/1349570
Pareview results:
http://pareview.sh/pareview/httpgitdrupalorgsandboxkarikaariainen1349570git
To clone the project:
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/kari.kaariainen/1349570.git selected_and_unselected_values_formatter
The default formatter for multiple values displays only those values that were selected in the node edit form. Sometimes it's useful to show all values and with some added markup indicate which values were selected.
This module provides a formatter that shows both unselected and selected values and lets you define markup to be printed before and after the value itself. It wraps the item in a span and lets you define the css class for that span, different one for the selected and unselected value.
For example, when you need to show what all of the choices are, this is one possible output of the formatter:
[ ] A (superior)
[ ] A-
[ ] B+
[X] B (good)
[ ] B-
[ ] C+
[ ] C (average)
[ ] C-
[ ] D+
[ ] D (poor)
[ ] F (failure)
[ ] I (incomplete)
[ ] PR (course in progress)
[ ] W (withdrew from course)
[ ] FF (failing in a pass/fail course)
[ ] PP (passing in a pass/fail course)
[ ] N/C (not for credit)
The output style can be freely defined.
Supports lists (float, int and text) and taxonomy. Supports i18n.
Reviews of other projects
| Comment | File | Size | Author |
|---|---|---|---|
| #31 | typo_error_found_on_module_page-30-01.patch | 670 bytes | soumyadas |
| #26 | 06-44-42.png | 27.84 KB | sudhakar dhanapalan |
Comments
Comment #1
kari.kaariainen commentedComment #2
kari.kaariainen commentedComment #3
phoang commentedI found some errors on Parview. Please review and fix it.
http://pareview.sh/pareview/httpgitdrupalorgsandboxkarikaariainen1349570git
Comment #4
kari.kaariainen commentedThanks! Fixed everything else but the string concats.
I'm not sure how to fix those without sacrificing readability too much. Made some changes there, two concat errors still remain.
Comment #5
phoang commentedIt would be better structure if you can moved all the markup in form instructions to a variable as below
For example:
Comment #6
kari.kaariainen commentedWay better. Thanks. Now no errors at Parview except that version branch should be created.
Comment #7
PA robot commentedWe are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #8
kari.kaariainen commented7.x-1.x branch created.
Comment #9
kari.kaariainen commentedComment #10
mas0h commentedreviewed & tested by the community, found no major flaws.
Comment #11
mas0h commentedComment #12
w01f commentedreviewed & tested by the community, found no major flaws.
Comment #13
stborchertHad a quick look at the code and it looks ok.
One question, though: wouldn't it be much better to remove the general configuration form and use hook_field_formatter_settings_form?
Using this hook you could define the wrappers and classes on a per field (and view mode) base.
Comment #14
madhusudanmca commentedHi kari.kaariainen,
Thanks for your contribution!!
Automated Review
Found some minor issues. Please see http://pareview.sh/pareview/httpgitdrupalorgsandboxkarikaariainen1349570git
Manual Review
"Fatal error: Call to undefined function i18n_language_interface() in D:\xampp\htdocs\drupal\sites\all\modules\selected_and_unselected_values_formatter\selected_and_unselected_values.module on line 267"
The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
As I am not a git administrator, so I would recommend you, please help to review other project applications to get a review bonus. This will put you on the high priority list, then git administrators will take a look at your project right away :-)
Thanks Again!
Comment #15
PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #16
kari.kaariainen commentedFixed issues.
Comment #17
babusaheb.vikas commented1) First of all you need to correct git clone command in Issue summary.
Correct git clone command for your project will be:
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/kari.kaariainen/1349570.git selected_and_unselected_values_formatter2) No need to put space between name and description in *.info file.
3) You should provide the hook_help to allow site builders to find information about your module using Drupal UI.
4) Only one error on Pareview. Please review and fix it.
http://pareview.sh/pareview/httpgitdrupalorgsandboxkarikaariainen1349570git
Comment #18
kari.kaariainen commentedComment #19
kari.kaariainen commentedThank you! Did those.
Comment #20
kari.kaariainen commentedThanks, @stBorchert Yes, being able to define the wrappers and classes per field and per view mode would be good. Now there is only one global set of settings. It's not great, but a good start. I may look into this later.
Comment #21
smakisog commentedAutomated Review
No errors found: http://pareview.sh/pareview/httpgitdrupalorgsandboxkarikaariainen1349570git
Note that perfect adherence to Drupal Coding Standard is NOT a reason to block an application, except for total disregard of them. However, modules should follow them as closely as possible.
Manual Review
The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
This review uses the Project Application Review Template.
Comment #22
smakisog commentedDefault behavior warning when no data available on site.
For example on default site installation with empty tags vocabulary:
Undefined variable: new_items in selected_and_unselected_values_field_formatter_prepare_view() (line 237 of sites/all/modules/custom/selected_and_unselected_values_formatte/selected_and_unselected_values.module).and as a consequence
Invalid argument supplied for foreach() in taxonomy_field_formatter_prepare_view() (line 1677 of /modules/taxonomy/taxonomy.module).Proposed solution
$items[$nid] = isset($new_items[$nid]) ? $new_items[$nid] : array();Comment #23
kari.kaariainen commentedThanks. Took care of the situations where allowed values list or taxonomy tree would be empty.
I added
if ($tree) {structure instead of what you proposed.Comment #24
kari.kaariainen commentedComment #25
kari.kaariainen commentedAdded .install file containing hook_uninstall so that the module doesn't leave unused variables behind.
Comment #26
sudhakar dhanapalan commentedI found some errors on Parview. Please review and fix it.
http://pareview.sh/pareview/httpgitdrupalorgsandboxkarikaariainen1349570git
Comment #27
kari.kaariainen commentedThanks. Fixed.
Comment #28
marcvangendLooks like a useful module, thank you for contributing.
One thing: IMHO you should reconsider your answer in #20 regarding the suggestion in #13. First of all, per-instance and per-viewmode settings are really useful. Second, I think site builders expect the settings to be tied to the formatter, so you're improving UX. Third, it's easier for you to do it now; if you add it later, you will have to provide an upgrade path for existing users. Last but not least: it's really not that hard, trust me. I'd be happy to help if needed.
Comment #29
kari.kaariainen commentedThanks for your offer to help. This module is in production in three places that I know of, so I'm thinking maybe I should make version 2 with per-instance and per-viewmode settings.
Comment #30
soumyadas commentedTypo error found on module page.
Comment #31
soumyadas commentedAdded patch for the issue #30
Comment #32
soumyadas commentedMistakenly I had added this tag, so removing it.
Comment #33
phoehne commentedAutomated Review
no issues
Manual Review
The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
This review uses the Project Application Review Template.
I did not found any problems.
Comment #34
kattekrab commented@kari.kaariainen congratulations - looks like this has been thoroughly reviewed and is now RTBC!
To expedite approval of this module you might like to review some modules from other contributors in order to get the review bonus. Once you've done so, add links in the summary to your reviews, and add the PAReview: review bonus tag.
Well done! And thanks for your contribution!
Comment #35
kattekrab commentedBumping to Critical.
Comment #36
kari.kaariainen commentedComment #37
kattekrab commentedComment #38
kattekrab commentedComment #39
stborchertNo objections for a long time so thanks for your contribution, Kari!
I updated your account so you can promote this to a full project and also create new projects as either a sandbox or a "full" project.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!
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.
Thanks to the dedicated reviewer(s) as well.
Comment #40
kari.kaariainen commentedComment #41
kari.kaariainen commentedThank you @SoumyaDas for your patch. Applied and committed.