Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function job_listings_form_alter(&$form, &$form_state, $form_id) {
- if ($form_id == 'job_listing_node_form') {
- $form['actions']['submit']['#value'] = 'Submit';
- $form['actions']['submit']['#submit'][] = 'job_listings_submit';
- }
- }
- /**
- * This hijacks the submission of the Job Listing 'node add' form, and redirects to the given path
- */
- function job_listings_submit($form, &$form_state) {
- $form_state['redirect'] = '/job-listing/thank-you';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement