You are here

function fape_field_edit_form_cancel in Field API Pane Editor (FAPE) 7

Redirect back to original page when user hits the cancel button.

Note: This is registered as a form validate handler on the cancel submit element so that we can bypass the submit logic which the ers module ties into.

1 string reference to 'fape_field_edit_form_cancel'
fape_field_edit_form in ./fape.module
Field editing form.

File

./fape.module, line 445
Adds direct field editing via contextual links.

Code

function fape_field_edit_form_cancel($form, &$form_state) {
  drupal_goto($form_state['redirect']);
}