function page_theme_admin_delete in Page Theme 7
Same name and namespace in other branches
- 6 page_theme.admin.inc \page_theme_admin_delete()
- 7.2 page_theme.admin.inc \page_theme_admin_delete()
Menu callback; deletes a theme.
1 string reference to 'page_theme_admin_delete'
- page_theme_menu in ./
page_theme.module - Implements hook_menu().
File
- ./
page_theme.admin.inc, line 261 - Admin page callbacks for the page_theme module.
Code
function page_theme_admin_delete($form, &$form_state, $page_theme) {
$form['theme'] = array(
'#type' => 'value',
'#value' => $page_theme->theme,
);
$question = t('Are you sure you want to delete the theme %theme?', array(
'%theme' => page_theme_get_theme_name($page_theme->theme, TRUE),
));
$path = isset($_GET['destination']) ? $_GET['destination'] : 'admin/structure/page-theme';
return confirm_form($form, $question, $path);
}