How to format the display of webform_select_options_info to include an image? Looking for some guidance on how to approach the formatting of the results of webform_select_options_info. What I want to present to the users is a dynamically populated list of items they flagged along with a checkbox. What I'd like to do is show a thumbnail of the image, the node title and a checkbox in  my list.

The function as I have it now is as follows

 function webform_hook_user_flag_sample_requests() {
   $view = views_get_view('webform_flag_views', TRUE);
   $view-&gt;set_display('webform_options');
   $view-&gt;execute();
   $options = array();
   if ($view-&gt;result) {
     $row_class = $view-&gt;style_options['row_class'];
     $attributes = $row_class ? " class='$row_class'" : '';
     foreach($view-&gt;result as $item) {
    $options[$item-&gt;product_id]= $item-&gt;commerce_product_title;
      }
       }
   else {
     $options[0] = t("Nothing");
   }
return $options;
      } 


I'm not sure how to change the foreach loop to include additional fields?
Well, I still didn't get a good answer on modifying the syntax here but here is working result. I have a check box, thumb, and title all showing as a list in webform. Still not completely functional as the function doesn't seem to work for anonymous users, although the Flag is anonymous and I'm using sessions.

 &lt;?php
    /**
     * Implements hook_webform_select_options_info().
     */
     function webform_hook_webform_select_options_info() {
       $items = array();
       if (function_exists('webform_hook_user_flag_sample_requests')) {
         $items['webform_hook_user_flag_sample_requests'] = array(
          'title' =&gt; t("Sample Requests (User Flag list)"),
          'options callback' =&gt; 'webform_hook_user_flag_sample_requests',
         );
       }

       return $items;
     }

     function webform_hook_user_flag_sample_requests() {
       $view = views_get_view('webform_flag_views', TRUE);
       $view-&gt;set_display('webform_options');
       $view-&gt;execute();
    // dpm($view);
       $options = array();

       if ($view-&gt;result) {
     //    $row_class = $view-&gt;style_options['row_class'];
     //    $attributes = $row_class ? " class='$row_class'" : '';
         foreach($view-&gt;result as $item) {
        $options[$item-&gt;product_id]= $item-&gt;commerce_product_title . render($item-&gt;field_field_image[0]['rendered']);
          }
           }
       else {
         $options[0] = t("Nothing");
       }
    return $options;
          }