php - Get the value of a field in a Webform in Drupal 7 -
i created form "webform" module. in form have 1 field of e-mail type. question is: how can value of field when user submits form?
i guess should use hook_form_form_id_alter
?
yes, should use hook_form_form_id_alter()
(or hook_form_alter()
, if prefer).
when have $form
argument these hooks, should set array value of $form['#submit']
name of function in catch needed values.
example:
$form['#submit'] = array('node_form_function_submit');
[...]
function node_form_function_submit($form, $form_state) { $form_state['values']; // submitted form values }
Comments
Post a Comment