You are here

function custompage_ui_delete_form in Custom Page 7

Same name and namespace in other branches
  1. 6 custompage_ui/custompage_ui.module \custompage_ui_delete_form()
1 string reference to 'custompage_ui_delete_form'
custompage_ui_menu in custompage_ui/custompage_ui.module
@file Custom Page Admin UI

File

custompage_ui/custompage_ui.module, line 205
Custom Page Admin UI

Code

function custompage_ui_delete_form($node, &$form_state, $setting) {
  $form['title'] = array(
    '#type' => 'hidden',
    '#value' => $setting->title,
  );
  $form['key'] = array(
    '#type' => 'hidden',
    '#value' => $setting->key,
  );
  return confirm_form($form, t('Delete custom page %title', array(
    '%title' => $setting->title,
  )), 'admin/structure/custompage', '<p>' . t('Are you sure you want to delete the custom page %title?', array(
    '%title' => $setting->title,
  )) . '</p>', t('Delete'), t('Cancel'));
}