I was trying to output badges in a view according to the current module settings, which seems to be associated with the function user_badges_for_user. Currently the default option "badges" uses the function user_badges_for_uid which outputs all the badges for the user.

As a work around I added the option "current_module_settings" to views_handler_field_user_badges_user_uid.inc and added the case 'current_module_settings' to return the badges according to your module settings. This was useful in my case since I setup the module to only display one badge. This is useful if you have badges that increase incrementally and you only display on at a time.

I have attached a patch for views_handler_field_user_badges_user_uid.inc. I have never submitted a patch before, so I hope it works out.

Support from Acquia helps fund testing for Drupal Acquia logo