You are here

function webform_ip_address in Webform 7.4

Returns an IP Address or anonymized IP Address for confidential webforms.

2 calls to webform_ip_address()
template_preprocess_webform_mail_message in ./webform.module
Prepare to theme the contents of e-mails sent by webform.
webform_submission_create in includes/webform.submissions.inc
Given set of $form_state values, prepare a psuedo-submission.
1 string reference to 'webform_ip_address'
webform_webform_results_download_submission_information_data in includes/webform.report.inc
Implements hook_webform_results_download_submission_information_data().

File

./webform.module, line 5316
This module provides a simple way to create forms and questionnaires.

Code

function webform_ip_address($node) {
  return $node->webform['confidential'] ? t('(unknown)') : ip_address();
}