function local_fonts_delete_form in @font-your-face 7.2
Same name and namespace in other branches
- 7 modules/local_fonts/local_fonts.module \local_fonts_delete_form()
Form for deleting a local font.
1 string reference to 'local_fonts_delete_form'
- local_fonts_menu in modules/
local_fonts/ local_fonts.module - Implements hook_menu().
File
- modules/
local_fonts/ local_fonts.module, line 371
Code
function local_fonts_delete_form($form, $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;
}