You are here

function saml_sp__delete_idp_form_submit in SAML Service Provider 7.8

Same name and namespace in other branches
  1. 7 saml_sp.admin.inc \saml_sp__delete_idp_form_submit()
  2. 7.2 saml_sp.admin.inc \saml_sp__delete_idp_form_submit()
  3. 7.3 saml_sp.admin.inc \saml_sp__delete_idp_form_submit()

Submit handler.

File

./saml_sp.admin.inc, line 243
Admin pages for the SAML Service Provider module.

Code

function saml_sp__delete_idp_form_submit($form, &$form_state) {

  // Redirect to the admin overview page.
  if (!empty($form['#destination'])) {
    $form_state['redirect'] = $form['#destination'];
  }
  $result = saml_sp_idp_delete($form_state['values']['machine_name']);
  drupal_set_message(t('IDP %idp_name has been deleted.', array(
    '%idp_name' => $form_state['values']['name'],
  )));
}