You are here

function wsfields_storage_delete_field_form in Web Service Data 7

WSField delete form

1 string reference to 'wsfields_storage_delete_field_form'
wsfields_storage_menu in modules/wsfields_storage/wsfields_storage.module
Implements hook_menu().

File

modules/wsfields_storage/wsfields_storage.admin.inc, line 388
Defines the wsfields storage forms

Code

function wsfields_storage_delete_field_form($form, &$form_state) {
  if (!isset($_GET['field'])) {
    return $form;
  }
  $field = $_GET['field'];
  $question = t('Are you sure you want to delete field @field?', array(
    '@field' => $field,
  ));
  $path = 'admin/config/services/wsfields_storage';
  $description = t('This action cannot be undone.');
  $yes = t('Delete');
  $no = t('Cancel');
  $form = confirm_form($form, $question, $path, $description, $yes, $no);
  return $form;
}