You are here

private function wf_crm_admin_form::buildConfirmationForm in Webform CiviCRM Integration 7.4

Same name and namespace in other branches
  1. 7.5 includes/wf_crm_admin_form.inc \wf_crm_admin_form::buildConfirmationForm()

Display confirmation message and buttons before deleting webform components

Return value

array

1 call to wf_crm_admin_form::buildConfirmationForm()
wf_crm_admin_form::buildForm in includes/wf_crm_admin_form.inc
Build admin form for civicrm tab of a webform

File

includes/wf_crm_admin_form.inc, line 143
Webform CiviCRM module's admin form.

Class

wf_crm_admin_form
@file Webform CiviCRM module's admin form.

Code

private function buildConfirmationForm() {
  $this->form['#prefix'] = $this->form_state['storage']['msg'];
  $this->form['cancel'] = $this->form['disable'] = $this->form['delete'] = array(
    '#type' => 'submit',
  );
  $this->form['delete']['#value'] = t('Remove Fields and Save Settings');
  $this->form['disable']['#value'] = t('Leave Fields and Save Settings');
  $this->form['cancel']['#value'] = t('Cancel (go back)');
  return $this->form;
}