Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Anonymous (not verified)
Created:
1 Jul 2015 at 13:33 UTC
Updated:
14 Dec 2021 at 10:32 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commentedComment #2
Anonymous (not verified) commentedComment #3
Anonymous (not verified) commentedComment #4
chernous_dn commentedIt is working correctly. @bobrov1989 great work!
Comment #5
vbouchetHi bobrov1989,
Thank you for you module. I tested it and seems working but it is also confusing.
If I visit the global configuration page (admin/appearance/settings), change the default value and save the form, the color selector is then reflecting my choice as the meta value in the source code. If I visit the configuration page for a specific theme (let's say Bartik as I used a default Drupal core - admin/appearance/settings/bartik), the color picker is reflecting the default configuration. The issue occurs when I chance the color for this specific theme and submit the form. The color picker (and the value) doesn't reflect my previous choice. If I visit the front office, the meta value is reflecting my choice so it seems only an issue with the default value on the form but may be an issue if I submit the form without resetting my appropriate color (to fix it, you should probably provide a theme name to the theme_get_setting() function).
Would it be possible to have the field from your module being part of the "Color scheme" field-group when editing settings for a specific theme?
Thanks,
Comment #6
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxbobrov19892514202git
We 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 #7
Anonymous (not verified) commentedThank you for review, @vbouchet. I'll fix issues and provide some hook to alter color dynamically.
Comment #8
Anonymous (not verified) commented@vbouchet
I've fixed all issues. And now I'm thinking about theme-color alter - can you help with advice please?
Comment #9
Anonymous (not verified) commentedComment #10
vbouchetHi bobrov1989,
Providing a hook_alter() is very easy.
Developers can now use my_module_theme_color_meta_tag_color_alter($color);
Please note that it's good practice (maybe mandatory) to describe your hook in theme_color_meta_tag.api.inc (see other contributed modules for example).
Hope that helps
Comment #11
Anonymous (not verified) commented@vbouchet
I've implement hook_alter and add .api.php file.
Comment #12
Anonymous (not verified) commentedComment #13
ajalan065 commentedHi bobrov1989,
1. Please remove LICENSE.txt and add README.txt. Its missing in your project.
2. There does not seem to be a heavy use of 'THEME_COLOR_META_TAG_DEFAULT' in your .module file.( I found it only on two places). So you can directly use the value instead.
Manual Review
1. Individual User Accounts
Yes: Follows the guidelines for individual user accounts.
2. No Duplication
Yes: Does not cause duplication and/or fragmentation.
3. Master Branch
Yes: Follows the guidelines for master branch.
4. Licensing
Yes: Follows the licensing requirements.
5. Secure code
Yes: Meets the security requirements.
6. Code long/complex enough for review
No: Does not follow the guidelines for project length and complexity.
Comment #14
Anonymous (not verified) commented@ajalan065 - thank you for your review.
I've fixed all isuues that you find. Please review again)
Comment #15
Torvald commentedHi bobrov1989,
I have reviewed your project.
Good work!
But i have some findings:
Comment #16
Anonymous (not verified) commented@Torvald thank you for review, I've fixed issues you found.
Comment #17
darol100 commentedAutomated Review
Pareview.sh show some minor JS errors - http://pareview.sh/pareview/httpgitdrupalorgsandboxbobrov19892514202git
Coder modules does not show any errors.
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.
I do not see any blocker on this project. I have added the PAReview: Single project promote tag because the project is too short. For more information about Single Project promote visit the What is a single project promotion? page.
Comment #18
darol100 commentedComment #19
Anonymous (not verified) commented@darol100 thank you for review,
I've fixed js code style issues.
Comment #20
mlhess commentedIn Drupal we normally filter on output, rather then sanitize on input. I would add a check_plain where you output the color.
Comment #21
damienmckennaFYI this meta tag is already customizable via the Metatag module.
Comment #22
Anonymous (not verified) commented@damienmckenna, yes, but Metatag module haven't this feature when I created my project. Also Metatag is a large module that cares about a lot of featured, my project take care about only one feature, it is lightweight and have configuration in theme settings. I think theme-color more close to the theme configuration.
Comment #23
Anonymous (not verified) commented@mlhess, I've added check_plain to the tag output and leave color validation on theme settings too.
Comment #24
damienmckennaThanks for your contribution, Vitaliy!
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 #26
avpadernoI am giving credits to the users who participated in this issue.