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(&$form_state, &$next_step, $params) {
$form = array();
//attaching existing content type fields
$review = new stdClass();
$review->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';
}
}