You are here

function _webform_civicrm_isWebformSubmission in Webform CiviCRM Integration 7.4

Same name and namespace in other branches
  1. 8.5 webform_civicrm.module \_webform_civicrm_isWebformSubmission()
  2. 7.5 webform_civicrm.module \_webform_civicrm_isWebformSubmission()

Determines if there is a webform get submitted

Parameters

$tokenType:

$webformData:

Return value

bool True if this is a webform submisstion and false if not

1 call to _webform_civicrm_isWebformSubmission()
webform_civicrm_tokens in ./webform_civicrm.module
Implements hook_tokens().

File

./webform_civicrm.module, line 792
Webform CiviCRM Integration Module: Links webform submissions to contacts in a CiviCRM database. @author Coleman Watts

Code

function _webform_civicrm_isWebformSubmission($tokenType, $webformData) {
  return $tokenType === 'submission' && !empty($webformData['webform-submission']) && webform_variable_get('webform_token_access');
}