1.20.x system.admin.inc | system_theme_disable_confirm($form, &$form_state) |
Theme disable confirmation form.
See also
system_theme_disable_confirm_submit()
Related topics
File
- modules/
system/ system.admin.inc, line 303 - Admin page callbacks for the System module.
Code
function system_theme_disable_confirm($form, &$form_state) {
if (isset($_REQUEST['theme']) && isset($_REQUEST['token']) && backdrop_valid_token($_REQUEST['token'], 'system-theme-operation-link')) {
$form['theme'] = array(
'#type' => 'hidden',
'#value' => $_REQUEST['theme'],
);
$confirm_question = t('Are you sure you want to disable this theme? All custom configuration will be lost.');
return confirm_form($form, $confirm_question, 'admin/appearance', t('This action cannot be undone.'), t('Disable'), t('Cancel'));
}
return MENU_ACCESS_DENIED;
}