You are here

function entityconnect_child_form_delete_submit in Entity connect 7

Same name and namespace in other branches
  1. 7.2 includes/entityconnect.form.inc \entityconnect_child_form_delete_submit()

Sets delete button on child create form.

On deletion submission of a child form we set: the form_state redirect with build cache id.

1 string reference to 'entityconnect_child_form_delete_submit'
entityconnect_child_form_alter in includes/entityconnect.form.inc
Alters child create form.

File

includes/entityconnect.form.inc, line 492
Handles all form alters and submit functions for entityconnect.

Code

function entityconnect_child_form_delete_submit(&$form, &$form_state) {
  if (isset($form_state['#entityconnect_child_form'])) {
    $form_state['redirect'][1]['query'] = array(
      'build_cache_id' => $form_state['#entityconnect_child_form']->cid,
      'child' => 1,
    );
  }
}