Commit 0b1b5fa0 authored by Jelle Sebreghts's avatar Jelle Sebreghts
Browse files

coder review

parent 3bd0078d
......@@ -77,7 +77,7 @@ function clientside_validation_form_alter(&$form, &$form_state, $form_id) {
// those pages listed in $path_filter.
$page_match = !((bool)$in_or_exclude xor $page_match);
}
if(!$page_match) {
if (!$page_match) {
return;
}
$validate_specific_setting = variable_get('clientside_validation_validate_specific', '');
......
......@@ -74,7 +74,7 @@ function clientside_validation_html5($form_id, $element, &$js_rules) {
else {
_clientside_validation_set_number($el_name, $el_title, $js_rules);
}
if(!empty($min) || !empty($max)) {
if (!empty($min) || !empty($max)) {
_clientside_validation_set_minmax_html5($el_name, $el_title, $min, $max, $step, $js_rules);
}
......@@ -92,9 +92,9 @@ function clientside_validation_html5($form_id, $element, &$js_rules) {
}
}
function _clientside_validation_set_minmax_html5($name, $title, $min, $max, $step, &$js_rules, $message=''){
function _clientside_validation_set_minmax_html5($name, $title, $min, $max, $step, &$js_rules, $message='') {
$title = variable_get('clientside_validation_prefix', '') . $title . variable_get('clientside_validation_suffix', '');
if( $step == 'any') {
if ($step == 'any') {
_clientside_validation_set_minmax($name, $title, $min, $max, $js_rules, $message);
}
elseif (isset($min) && $min !== '' && isset($max) && $max !== '') {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment