function fontyourface_ui_admin_enable_form in @font-your-face 7.2
Enables a single font.
1 string reference to 'fontyourface_ui_admin_enable_form'
- fontyourface_ui_menu in modules/
fontyourface_ui/ fontyourface_ui.module - Implements hook_menu().
File
- modules/
fontyourface_ui/ fontyourface_ui.module, line 1348
Code
function fontyourface_ui_admin_enable_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 enable this font?') . '</div>',
),
'buttons' => array(
'submit' => array(
'#type' => 'submit',
'#value' => t('Enable'),
),
'cancel' => array(
'#type' => 'submit',
'#value' => t('Cancel'),
),
),
);
return $form;
}