function fontyourface_ui_admin_disable_form in @font-your-face 7.2
Disables a single font.
1 string reference to 'fontyourface_ui_admin_disable_form'
- fontyourface_ui_menu in modules/
fontyourface_ui/ fontyourface_ui.module - Implements hook_menu().
File
- modules/
fontyourface_ui/ fontyourface_ui.module, line 1408
Code
function fontyourface_ui_admin_disable_form($form, &$form_state, $fid) {
$font = fontyourface_get_font($fid);
$form = array(
'fid' => array(
'#type' => 'hidden',
'#value' => $font->fid,
),
'sure' => array(
'#markup' => '<div>' . t('Are you sure you want to disable this font?') . '</div>',
),
'buttons' => array(
'submit' => array(
'#type' => 'submit',
'#value' => t('Disable'),
),
'cancel' => array(
'#type' => 'submit',
'#value' => t('Cancel'),
),
),
);
return $form;
}