You are here

function local_fonts_delete_fontface in @font-your-face 6.2

Form for deleting a local font.

1 string reference to 'local_fonts_delete_fontface'
local_fonts_menu in modules/local_fonts/local_fonts.module
Implementation of hook_menu().

File

modules/local_fonts/local_fonts.module, line 350

Code

function local_fonts_delete_fontface($form_state, $fid) {
  $font = fontyourface_get_font($fid);
  $form = array(
    'fid' => array(
      '#type' => 'value',
      '#value' => $fid,
    ),
    'confirm' => array(
      '#type' => 'fieldset',
      '#title' => t('Confirm delete of @title?', array(
        '@title' => $font->name,
      )),
      array(
        '#type' => 'submit',
        '#value' => 'Delete font record',
      ),
      array(
        '#type' => 'submit',
        '#value' => 'Cancel',
      ),
    ),
  );
  return $form;
}