You are here

function agreement_type_reset_form in Agreement 7.2

Provides an interface to reset all agreements for an agreement type.

Parameters

array $form: The form array.

array &$form_state: The form state array.

array $info: The agreement type.

Return value

array The form array.

1 string reference to 'agreement_type_reset_form'
agreement_menu in ./agreement.module
Implements hook_menu().

File

./agreement.admin.inc, line 526
Agreement administration page callback.

Code

function agreement_type_reset_form($form, &$form_state, $info) {
  $form_state['agreement'] = $info;
  $form['confirm_message'] = array(
    '#markup' => t('Force all users to re-accept the @type agreement?', array(
      '@type' => $info['type'],
    )),
  );
  $form['confirm'] = array(
    '#type' => 'hidden',
    '#value' => 1,
  );
  $form['actions'] = array(
    '#type' => 'actions',
  );
  $form['actions']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Confirm'),
  );
  $form['actions']['cancel'] = array(
    '#type' => 'link',
    '#title' => t('Cancel'),
    '#href' => 'admin/config/people/agreement',
    '#options' => array(),
  );
  return $form;
}