Description

This small module allows you to output an imagefield in multiple image styles with different formats. Currently, the following formats are supported:

- List of links to thumbnail images.
- List of thumbnail images.
- A select box of items, where each item's key is the link to the image and label is a configurable text such as name of the image style, size and dimension of the image file.

Project link

https://drupal.org/sandbox/ngocketit/2154645

Git repos for cloning

git clone --branch 7.x-1.x http://git.drupal.org/sandbox/ngocketit/2154645.git

Comments

ngocketit’s picture

Issue summary: View changes
inakilz’s picture

Hello,

Here are some quick issues to get started:

- The git clone is your personal git URL. This is your public Git clone command:
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/ngocketit/2154645.git
- You should delete your master branch, according to https://drupal.org/empty-git-master
- Take a look at the automated code review results here:
http://pareview.sh/pareview/httpgitdrupalorgsandboxngocketit2154645git

inakilz’s picture

Status: Needs review » Needs work
ngocketit’s picture

Issue summary: View changes
ngocketit’s picture

Hi,

Thank you inakilz for your comment! I updated git repos URL, removed the master branch and fixed the coding convention issues as pointed out by the automatic code review tool. There are still some warnings but I think they shouldn't affect the functionality of the module. Here is the latest automatic review. Please check again.

http://pareview.sh/pareview/httpgitdrupalorgsandboxngocketit2154645git

ngocketit’s picture

Status: Needs work » Needs review
PA robot’s picture

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.

Alexxikon’s picture

Hi ngocketit, here are my observations on your project:

The image_styles_formatter.info and image_styles_formatter.module files have the execution bit set (755 instead of 644).

I suppose you could add comment to document the arguments of the functions _image_styles_formatter_sort_image_styles(), _image_styles_formatter_get_image_info(), _image_styles_formatter_output_list().

Fernly’s picture

Status: Needs review » Needs work

Hi,

I took a look at the code and perhaps the following could be improved:

  • Make sure the text lines in the info file are no longer than 80 chars.
  • Add @param and @return info to your custom function documentation. Perhaps you could be a little bit more generous with comments, overall.
  • On line 366 you're adding tokens. A common way to add a token list to a form is using the token_tree form element.
  • The description phrases on line 382 and 398 are missing a period at the end. Details though. :-)

Good luck!

Lennart

ngocketit’s picture

Thank you all for your reviews! I added more comments to the code and fixed the issues you have listed. Regarding the token display, thanks lennartvv for the info about the function. I knew that function but I didn't want to use it because I just want to have a simple, elegant way of showing the token info. I can of course switch to using token_tree but it seems to be pretty overkill for me.

ngocketit’s picture

Status: Needs work » Needs review
drush7’s picture

Hi ngocketit, as my first review, I installed & tested the module, also had a brief look at the code. I think the code looks good, at least clean and standard. This small module may be helpful to somebody who wants to have the same image field to be displayed in several image styles at the same time.

drush7’s picture

Status: Needs review » Reviewed & tested by the community
drush7’s picture

Assigned: Unassigned » drush7
drush7’s picture

Assigned: drush7 » Unassigned
TR’s picture

Status: Reviewed & tested by the community » Needs work

@ngocketit: Are you the same person as @drush7?

  • @drush7 created an account in February and immediately posted a review of this project, changing the status to RTBC.
  • @drush7 has made no other posts at all on drupal.org.
  • Now today @drush7 has bumped this issue to the top of the queue.

It sure looks like you created a second account on drupal.org just to push your application along.

Meanwhile, you haven't made any commits to this project since January, and specifically all the Pareview errors that were pointed out in January are still there. See http://pareview.sh/pareview/httpgitdrupalorgsandboxngocketit2154645git

Yes, the review process can be slow, but as long as you respond to the reviewers remarks and make the suggested changes your application *will* be approved. The only way to get it denied is to fail to participate. The documentation on the review process gives you suggestions on how to get through this faster - getting a review bonus (see above) is one way. When I see deceptive practices, however, I personally put my efforts towards looking at other projects.

ngocketit’s picture

Definitely no! He's actually my friend who I helped me review the code. He's a junior developer and might not fully understand the process and I think I didn't either. But now I get a better understanding of what I should do. I'll help review other project, earn my bonus as well as fix the errors in the module & probably consider porting it to D8.

PA robot’s picture

Status: Needs work » Closed (won't fix)

Closing 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.