You are here

function local_fonts_delete_button_submit in @font-your-face 6.2

Same name and namespace in other branches
  1. 7.2 modules/local_fonts/local_fonts.module \local_fonts_delete_button_submit()
  2. 7 modules/local_fonts/local_fonts.module \local_fonts_delete_button_submit()

Redirect to delete confirmation form.

1 string reference to 'local_fonts_delete_button_submit'
local_fonts_form_alter in modules/local_fonts/local_fonts.module
Implementation of hook_form_alter().

File

modules/local_fonts/local_fonts.module, line 73

Code

function local_fonts_delete_button_submit($form, &$form_state) {
  $destination = '';
  if (isset($_REQUEST['destination'])) {
    $destination = drupal_get_destination();
    unset($_REQUEST['destination']);
  }
  $form_state['redirect'] = array(
    'admin/build/themes/fontyourface/local_fonts/delete/' . $form['fid']['#value'],
    $destination,
  );
}