You are here

function context_ui_delete_confirm in Context 5

Provide a form to confirm deletion of a context definition.

1 string reference to 'context_ui_delete_confirm'
context_ui_menu in context_ui/context_ui.module
Implementation of hook_menu().

File

context_ui/context_ui_admin.inc, line 347

Code

function context_ui_delete_confirm($cid) {
  $context = context_ui_context('load', $cid);
  if (!$context) {
    return drupal_goto('admin/build/context');
  }
  $form['cid'] = array(
    '#type' => 'value',
    '#value' => $cid,
  );
  $form = confirm_form($form, t('Are you sure you want to delete %title?', array(
    '%title' => $context->value,
  )), 'admin/build/context', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
  return $form;
}