Skip to main content

Timeline for Make field editable in comment form

Current License: CC BY-SA 3.0

4 events
when toggle format what by license comment
Apr 1, 2015 at 7:21 comment added Kartagis Yeah, you did it right :)
Apr 1, 2015 at 7:16 comment added jksport function custom_support_comment_submit($form, &$form_state) { $node = node_load($form_state['values']['nid']); $node_wrapper = entity_metadata_wrapper('node', $node); $node_wrapper->field_clarify->set($form_state['values']['field_clarify']); $node_wrapper->save(); }
Apr 1, 2015 at 7:16 comment added jksport Something like this? function custom_form_alter(&$form, $form_state, $form_id) { if ($form_id == 'comment_node_support_ticket_form') { $form['field_clarify'] = array( '#type' => 'select', '#title' => 'Clarify', '#options' => array('clarification required', 'clarification isn\'t required' ); $form['#submit'][] = 'custom_support_comment_submit'; } }
Apr 1, 2015 at 6:24 history answered Kartagis CC BY-SA 3.0