FAPI Fivestar settings in custom form I have a multistep form with mforms in forth step my form have fivestar field from a review node content type. 
All fivestar field display option are set to basic, but fields are displaying differently. 

I tried to change the display widget in my module, with no luck. If i try to change the widget it returns to defaults.

Any suggestion are welcome. thx

function _reviewform_step4(&amp;$form_state, &amp;$next_step, $params) {

    $form = array();

    //attaching existing content type fields
    $review = new stdClass();
    $review-&gt;type = 'review'; //content type

    field_attach_form('node', $review, $form, $form_state);

    foreach ($form_state['field'] as $field) {
        if ($field['und']['field']['type'] == 'fivestar') {
            $field_name = $field['und']['field']['field_name'];
            // not working
            $form[$field_name]['und'][0]['rating']['#settings']['widget']['name'] = 'flames';
            $form[$field_name]['und'][0]['rating']['#settings']['widget']['css'] =     'sites/all/modules/fivestar/widgets/flames/flames.css';    
            // not working to
            $form[$field_name]['und'][0]['rating']['#widget']['name'] = 'flames';
            $form[$field_name]['und'][0]['rating']['#widget']['css'] = 'sites/all/modules/fivestar/widgets/flames/flames.css';    
        }
    }
I am not familiar with mforms, but I see a few potential issues:

1)  your form doesn't have a standard signature ($form, &amp;$form_state, ...).  I obviously can't see how you're calling it, but this is not a typical thing to do.

2)  when getting the path of the css, you should be using drupal_get_path
https://api.drupal.org/api/drupal/developer!topics!forms_api_reference.html/7#attached

3)  widget is not a property of #settings