SyntaxFix
Write A Post
Hire A Developer
Questions
$bucket = '$node->' . $fieldname . "['und'][0]['value'] = " . '$form_state' . "['values']['" . $fieldname . "']"; print $bucket;
yields:
$node->mindd_2_study_status['und'][0]['value'] = $form_state['values'] ['mindd_2_study_status']