Populate a Chosen select list from a view We have a request from a client to create an interface where they select nodes in a Chosen box. We have the Chosen module on the site and have successfully implemented features with it. 

In this case, they want to have an admin interface where they choose which nodes populate a javascript image slider. I thought to simply make them a custom view where they can check a checkbox field to indicate whether to include the node or not. However, because they want the Chosen functionality, I need to populate a select box with the values from a view. 

How can I create a select box that's populated by values from a view I've already defined? I've done some searching and found the Entity Reference View Widget module, but that doesn't seem to do what I am looking for. 

Edit I'm not so concerned about the Chosen functionality, I can handle that. What I really want to know is how to get the values from a view to populate a select box, either with a widget, or defining a select box in an form array.
You can programmatically invoke a view to retrieve data and process it as needed:

  // Example select form array
  $form['my_selectbox'] = array(
    '#title' =&gt; t('My Select Label'),
    '#type' =&gt; 'select',
    '#description' =&gt; t('My select label.'),
    '#options' =&gt; array(),
  );

  $view = views_get_view("my_view_machine_name");

  //use "default" for default display
  $view-&gt;set_display("my_view_display_machine_name"); 

  // @TODO: Alter any other view properties 
  // (e.g. exposed_input, offset, etc.) as needed

  // Pre execute &amp; execute view query
  $view-&gt;pre_execute();
  $view-&gt;execute();

  // $view-&gt;result contains an array of row objects inside the view.
  // the properties will vary based on your view
  foreach ($view-&gt;result as $row) {
    $form['my_selectbox']['#options'][$row-&gt;nid] = $row-&gt;node_title;
  }