function clientside_validation_settings_current_form in Clientside Validation 7
Same name and namespace in other branches
- 7.2 clientside_validation.module \clientside_validation_settings_current_form()
6 calls to clientside_validation_settings_current_form()
- clientside_validation_form_after_build in ./
clientside_validation.module - Regular form.
- clientside_validation_regular in clientside_validation_form/
clientside_validation_form.module - clientside_validation_webform_after_build in ./
clientside_validation.module - Webform.
- clientside_validation_webform_after_build_recurse in clientside_validation_webform/
clientside_validation_webform.module - _clientside_validation_add_general_settings in ./
clientside_validation.module
File
- ./
clientside_validation.module, line 1513 - Add client side validation to forms.
Code
function clientside_validation_settings_current_form($settings = NULL) {
$current =& drupal_static(__FUNCTION__, array());
if (isset($settings)) {
$current = $settings;
if (isset($current['settings']) && is_array($current['settings'])) {
$current = $current['settings'];
}
}
return $current;
}