You are here

function fe_paths_config_delete_confirm_submit in File Entity Paths 7.2

Form submit function for configuration deleting form.

_state

Parameters

$form:

File

./fe_paths.admin.inc, line 412
Admin ui for the File Entity Paths module.

Code

function fe_paths_config_delete_confirm_submit($form, &$form_state) {
  if ($form_state['values']['confirm']) {
    fe_paths_config_delete($form_state['values']['id']);
    drupal_set_message(t('The configuration is deleted.'));
  }
  $form_state['redirect'] = 'admin/config/media/fe-paths';
}