function skinr_ui_delete_confirm in Skinr 6.2
Same name and namespace in other branches
- 7.2 skinr_ui.admin.inc \skinr_ui_delete_confirm()
Menu callback; displays the delete confirmation for a skinr page rule.
1 string reference to 'skinr_ui_delete_confirm'
- skinr_ui_menu in ./
skinr_ui.module - Implementation of hook_menu().
File
- ./
skinr_ui.admin.inc, line 791 - Admin page callbacks for the skinr module.
Code
function skinr_ui_delete_confirm(&$form_state, $theme, $module, $sid) {
$form['theme'] = array(
'#type' => 'value',
'#value' => isset($form_state['theme']) ? $form_state['theme'] : $theme,
);
$form['module'] = array(
'#type' => 'value',
'#value' => isset($form_state['module']) ? $form_state['module'] : $module,
);
$form['sid'] = array(
'#type' => 'value',
'#value' => isset($form_state['sid']) ? $form_state['sid'] : $sid,
);
$themes = list_themes();
return confirm_form($form, t('Are you sure you want to delete these Skinr settings?'), isset($_GET['destination']) ? $_GET['destination'] : 'admin/build/skinr', t('This action cannot be undone.<br /> Theme: !theme<br />Module: !module<br />Skinr ID: !sid', array(
'!theme' => $themes[$theme]->info['name'],
'!module' => $module,
'!sid' => $sid,
)), t('Delete'), t('Cancel'));
}