function webform_component_delete_form_submit in Webform 5.2
Same name and namespace in other branches
- 6.3 includes/webform.components.inc \webform_component_delete_form_submit()
- 6.2 webform_components.inc \webform_component_delete_form_submit()
- 7.4 includes/webform.components.inc \webform_component_delete_form_submit()
- 7.3 includes/webform.components.inc \webform_component_delete_form_submit()
File
- ./
webform_components.inc, line 496 - Webform module components handling.
Code
function webform_component_delete_form_submit($form_id, $form_values) {
drupal_set_message(t('Component %name deleted.', array(
'%name' => $form_values['component']['name'],
)));
webform_component_delete($form_values['node'], $form_values['component']);
return 'node/' . $form_values['node']->nid . '/edit/components';
}