You are here

function recaptcha_v3_admin_settings_delete_action in reCAPTCHA v3 7

1 string reference to 'recaptcha_v3_admin_settings_delete_action'
recaptcha_v3_menu in ./recaptcha_v3.module
Implements hook_menu().

File

./recaptcha_v3.admin.inc, line 233
Provides the Google No CAPTCHA administration settings.

Code

function recaptcha_v3_admin_settings_delete_action($form, &$form_state, $id) {
  if (_recaptcha_v3_id_exists($id)) {
    $form['id'] = array(
      '#type' => 'value',
      '#value' => $id,
    );
    return confirm_form($form, t('Are you sure you want to delete this action?'), 'admin/config/people/captcha/recaptcha-v3', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
  }
  drupal_set_message(t('An action with %id not exist!', array(
    '%id' => $id,
  )), 'error');
  drupal_goto('admin/config/people/captcha/recaptcha-v3');
}