bvandorp / noCaptcha

MODx FormIt hook for the new noCaptcha reCaptcha from Google
13 stars 4 forks source link

$scriptProperties #3

Closed Jako closed 9 years ago

Jako commented 9 years ago
$theme = $modx->getOption('ncTheme', $scriptProperties, '');

instead of

$theme = $hook->formit->config['ncTheme'] ?: 'light';

Will get the properties of the specific FormIt call … This way you could use different settings for different FormIt calls.

$xxx = $modx->getOption('xxx', null, $modx->getOption('xxx', $scriptProperties, ''));

Will first try to get the options from system/context setting and if not set from Snippet parameter (in this case FormIt).

bvandorp commented 9 years ago

Fixed this as well