This module allows you to group webform fields inside of a jQuery UI Accordion (http://jqueryui.com/demos/accordion) control similarly to how the default Fieldset control works. The module makes two new components available for use on your webform: "Accordion Container" and "Accordion Tab".

Projects that I'm already a maintainer on:

Views Media Browser (http://drupal.org/project/views_media_browser)
Media Translation (http://drupal.org/project/media_translation)
Media Update (http://drupal.org/project/media_update)
Template Field (http://drupal.org/project/template_field)
Apache Solr Media (http://drupal.org/project/apachesolr_media)

Project applications that I've reviewed

Comments

patrickd’s picture

welcome,

There is still a master branch, make sure to set the correct default branch: http://drupal.org/node/1659588 .

git checkout 7.x-1.x
git branch -D master
git push origin :master

An automated review of your project looks good, the issues shown are false positive (required functions of webform) (note to other reviewers)

There are about 100 other applications waiting for review and only a hand full of active reviewers.
We do really need more hands in the application queue and highly recommend to get a review bonus so we can come back to your application sooner.

regards

roynilanjan’s picture

One very basic observation from the module file that the function,

function webform_accordion_insert_js_css() {
  $embedded = drupal_static(__FUNCTION__);

  if (!$embedded) {
    drupal_add_library('system', 'ui');
    drupal_add_library('system', 'ui.widget');
    drupal_add_library('system', 'ui.accordion');
    drupal_add_js(drupal_get_path('module', 'webform_accordion') . '/js/webform_accordion.js');

    $embedded = TRUE;
  }
}

why should I do that static variable set to "true" at the end of function. Because drupal_static() will return an empty value the first time we call it, but any changes to the variable will be preserved when the function is called again. That means that our function can check if the variable is already populated, and return it immediately without doing any more work
It seems to me that without resetting to true still those library will be cached during page request by using the default behavior of drupal_static

shawn_smiley’s picture

@patrickd,
Thanks for the feedback, I'll try to get some module reviews in this weekend.

@roynilanjan,
You have an interesting point here, though your comment did make me notice that I was missing the & on the drupal_static() call so assigning the $embedded variable didn't actually do anything. I've updated the code to correctly use drupal_static(). I'm using drupal_static() here rather than just a plain static variable for the unlikely case that some other module modifies the embedded libraries and calls drupal_static_reset().

roynilanjan’s picture

drupal_static is basically an use of caching mechanism handling for a single page request where actually I can write my expensive logics... and using drupal_static_reset we can just reset the cache & executes the normal process once again

shawn_smiley’s picture

Issue summary: View changes

Added list of project applications that I have reviewed and commented on.

shawn_smiley’s picture

Issue tags: +PAreview: review bonus

I've completed a review of three applications (noted in the main issue description).

I've also adjusted the static variable handling webform_accordion_insert_js_css().

Updated tag for PAReview: review bonus.

dago.aceves’s picture

Status: Needs review » Reviewed & tested by the community

Checked this out on my local. Looks good.

klausi’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for your contribution, Shawn_Smiley!

I updated your account to let you 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 get 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.

shawn_smiley’s picture

Thanks Klausi and everyone else that provided reviews and feedback.

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Updated project description with the link to my review of the JISCPM module.