You are here

function _webform_protected_downloads_set_warning in Webform Protected Downloads 7

Same name and namespace in other branches
  1. 6 webform_protected_downloads.module \_webform_protected_downloads_set_warning()

Set a warning message about problems with this webform configuration

Return value

void

1 call to _webform_protected_downloads_set_warning()
webform_protected_downloads_form_alter in ./webform_protected_downloads.module
Implementation of hook_form_alter().

File

./webform_protected_downloads.module, line 1087
This file contains hook declarations and functions for the Webform Protected Downloads module.

Code

function _webform_protected_downloads_set_warning() {
  $wpd_message =& drupal_static(__FUNCTION__);
  if (!isset($wpd_message)) {
    drupal_set_message(t('The mandatory email field has been removed from this webform. Protected downloads have been disabled. Please fix this problem.'));
    $wpd_message = TRUE;
  }
}