You are here

function config_pages_delete_form in Config Pages 7

Form callback: confirmation form for deleting a config_pages.

Parameters

$config_pages: The config_pages to delete

See also

confirm_form()

1 string reference to 'config_pages_delete_form'
config_pages_delete_form_wrapper in ./config_pages.admin.inc
Form callback wrapper: delete a config_pages.

File

./config_pages.admin.inc, line 473
ConfigPages editing UI.

Code

function config_pages_delete_form($form, &$form_state, $config_pages) {
  $form_state['config_pages'] = $config_pages;
  $form['#submit'][] = 'config_pages_delete_form_submit';
  $form = confirm_form($form, t('Are you sure you want to delete config_pages %name?', array(
    '%name' => $config_pages->name,
  )), CONFIG_PAGES_PATH_MANAGE_TYPES, '<p>' . t('This action can not be undone.') . '</p>', t('Delete'), t('Cancel'), 'confirm');
  return $form;
}