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