Hi, this module allow to use jQuery form styler plugin for make your select, checkbox, file, radio, number elements more user-friendly.

Sandbox url: https://www.drupal.org/sandbox/armrus/2828737
git url: http://git.drupal.org/sandbox/armrus/2828737.git

Git clone command

git clone --branch 7.x-1.x https://git.drupal.org/sandbox/armrus/2828737.git form_styler
cd form_styler

Reviews of other projects:
https://www.drupal.org/node/2827119#comment-11787791
https://www.drupal.org/node/2828431#comment-11787816
https://www.drupal.org/node/2828796#comment-11787829

Comments

armrus created an issue. See original summary.

armrus’s picture

Title: jQuery form styler » [D7] jQuery form styler
armrus’s picture

Project: jQuery form styler » Drupal.org security advisory coverage applications
Component: Module » module
Issue summary: View changes
PA robot’s picture

Multiple Applications
It appears that there have been multiple project applications opened under your username:

Project 1: https://www.drupal.org/node/2828745

Project 2: https://www.drupal.org/node/2828967

As successful completion of the project application process results in the applicant being granted the 'Create Full Projects' permission, there is no need to take multiple applications through the process. Once the first application has been successfully approved, then the applicant can promote other projects without review. Because of this, posting multiple applications is not necessary, and results in additional workload for reviewers ... which in turn results in longer wait times for everyone in the queue. With this in mind, your secondary applications have been marked as 'closed(duplicate)', with only one application left open (chosen at random).

If you prefer that we proceed through this review process with a different application than the one which was left open, then feel free to close the 'open' application as a duplicate, and re-open one of the project applications which had been closed.

I'm a robot and this is an automated message from Project Applications Scraper.

PA robot’s picture

Issue summary: View changes

Fixed the git clone URL in the issue summary for non-maintainer users.

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.

armrus’s picture

Issue summary: View changes
Issue tags: +PAreview: review bonus
rajveergangwar’s picture

Hi,
Below are my reviews

1) Please use module_exist or function_exist before in function form_styler_plugin_loaded for $jquery_form_styler = libraries_load('jquery_form_styler');

th_tushar’s picture

Status: Needs review » Needs work

Manual Review

Individual user account
Yes: Follows the guidelines for individual user accounts.
No duplication
Yes: Does not cause module duplication and/or fragmentation.
Master Branch
Yes: Follows the guidelines for master branch.
Licensing
Yes: Follows the licensing requirements.
3rd party assets/code
Yes: Follows the guidelines for 3rd party assets/code.
README.txt/README.md
Yes: Follows the guidelines for in-project documentation and/or the README Template.
Code long/complex enough for review
Yes: Follows the guidelines for project length and complexity.
Secure code
Yes: Meets the security requirements.
Coding style & Drupal API usage
  1. (*) On module enable, there is no message displayed for library installation. Please provide some information on library installation and module setup.
  2. (*)There is no error message or warning displayed to user on admin/config/user-interface/form-styler page even if the library is not installed.
  3. (+) In form_styler_form_alter() function, use condition to check form ids that are added in admin/config/user-interface/form-styler config page. Currently, the form styler library is loaded on all the pages that have forms and if library is available.

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.

armrus’s picture

@rajveergang hi.
you`re say

1) Please use module_exist or function_exist before in function form_styler_plugin_loaded for $jquery_form_styler = libraries_load('jquery_form_styler');

form_styler module require the Libraries module version >=2.x. (see form_styler.info file)
if Libraries not installed you can`t enable the form_styler module.

armrus’s picture

Status: Needs work » Needs review

@th_tushar, hi.
Thanks for review.

  1. (*) On module enable, there is no message displayed for library installation. Please provide some information on library installation and module setup.
  2. (*)There is no error message or warning displayed to user on admin/config/user-interface/form-styler page even if the library is not installed.
  3. (+) In form_styler_form_alter() function, use condition to check form ids that are added in admin/config/user-interface/form-styler config page. Currently, the form styler library is loaded on all the pages that have forms and if library is available.
  1. Added hook_requirements().
  2. Added error message on admin/config/user-interface/form-styler page even if the library is not installed.
  3. In form_styler_form_alter() changed conditions order. Currently plugin loaded only when form is called.

Please check.

rajveergangwar’s picture

@armrus ,

Yes you are right.

th_tushar’s picture

Status: Needs review » Reviewed & tested by the community

@armrus,

Few more findings after module updation,

  • (+) In form_styler_form_alter(), you have used \n to explode form ids. There can be \n or \r\n. Recommend to use PHP_EOL instead.
  • Rename git clone command in issue description as the module name (form_styler) is different from module folder name (jquery_form_styler).
  • Provide some examples on module page for how to customize Drupal form elements using this plugin.

The plus sign (+) items are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.

Please address above findings, as they are not application blocker though, moving it to RTBC. I will approve it if there are no objections for a week.

armrus’s picture

Issue summary: View changes
armrus’s picture

@th_tushar, thanks for review

  1. \n replaced with PHP_EOL
  2. Git clone command automatically added by PA robot, folder name changed to form_styler
  3. I will write detailed documentation for module, and place it to project page after few days.
th_tushar’s picture

Also add the instructions of how to install a library without drush command on project page.

But otherwise looks good to me. No objections for more than a week.

Thanks for your contribution, armrus!

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.

th_tushar’s picture

Status: Reviewed & tested by the community » Fixed
armrus’s picture

Status: Fixed » Closed (fixed)

Thanks, the module has been relised https://www.drupal.org/project/form_styler