You are here

function custompage_ui_delete_form in Custom Page 6

Same name and namespace in other branches
  1. 7 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 195
Custom Page Admin UI

Code

function custompage_ui_delete_form(&$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/build/custompage', '<p>' . t('Are you sure you want to delete the custom page %title?', array(
    '%title' => $setting->title,
  )) . '</p>', t('Delete'), t('Cancel'));
}