function example_form_submit_redirect_handler in Coder 8.2
Same name and namespace in other branches
- 8.3 tests/Drupal/Formatting/MultipleStatementAlignmentUnitTest.inc \example_form_submit_redirect_handler()
- 8.3.x tests/Drupal/Formatting/MultipleStatementAlignmentUnitTest.inc \example_form_submit_redirect_handler()
Example function.
File
- coder_sniffer/
Drupal/ Test/ Formatting/ MultipleStatementAlignmentUnitTest.inc, line 27
Code
function example_form_submit_redirect_handler($form, &$form_state) {
$selected_content = $form_state['values']['field_content_type'][LANGUAGE_NONE][0]['value'];
$_SESSION['file_upload_session'] = TRUE;
$form_state['redirect'] = 'example/' . $selected_content . '/' . $form_state['nid'] . '/mapping';
}