You are here

function page_theme_admin_delete in Page Theme 6

Same name and namespace in other branches
  1. 7.2 page_theme.admin.inc \page_theme_admin_delete()
  2. 7 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
Implementation of hook_menu().

File

./page_theme.admin.inc, line 245
Admin page callbacks for the page_theme module.

Code

function page_theme_admin_delete(&$form_state, $page_theme) {
  $form = array();
  $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_themes($page_theme->theme),
  ));
  $path = isset($_GET['destination']) ? $_GET['destination'] : 'admin/build/page-theme';
  return confirm_form($form, $question, $path);
}