You are here

function local_fonts_delete_button_submit in @font-your-face 7.2

Same name and namespace in other branches
  1. 6.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
Implements hook_form_alter().

File

modules/local_fonts/local_fonts.module, line 80

Code

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