Commit 3a86fbed authored by Jelle Sebreghts's avatar Jelle Sebreghts
Browse files

fixed clientside_validation_webform error due to typo in function name

parent 5ab95a3d
......@@ -18,6 +18,7 @@ function clientside_validation_enable() {
->condition('name', 'clientside_validation')
->execute();
}
/**
* Clientside validation was split up into form validation, webform validation and fapi validation.
* This update enables the form and webform clientside validation module. It does not enable the
......
......@@ -16,7 +16,7 @@ function clientside_validation_menu() {
'page arguments' => array('clientside_validation_admin_settings'),
'access arguments' => array('administer site configuration'),
);
$items['clientside_validation/ajax'] = array(
$items['clientside_validation/ajax'] = array(
'title' => 'Clientside validation ajax callback',
'page callback' => '_clientside_validation_ajax_call',
'access arguments' => array('access content'),
......@@ -244,7 +244,7 @@ function _clientside_validation_set_number($name, $title, $decimalpoint, &$js_ru
/**
* Set validation rule for decimal fields.
*/
function _clientside_validation_set_number_decimal($name, $title, $decimalpoint, &$js_rules, $decimals = 0, $digits = 0) {
function _clientside_validation_set_number_decimal($name, $title, $decimalpoint, &$js_rules) {
$title = variable_get('clientside_validation_prefix', '') . $title . variable_get('clientside_validation_suffix', '');
if ($decimalpoint == '.') {
$js_rules[$name]['number'] = TRUE;
......
......@@ -7,7 +7,7 @@
function clientside_validation_webform_clientside_validation_webform_alter(&$form, &$form_state, &$js_rules) {
clientside_validation_webform_after_build_recurse($form['#id'], $form, $form_state, $js_rules);
if ($webform_validation_rules = clientside_validation_webform_validation($form_state['values']['details']['nid'])) {
if ($webform_validation_rules = clientside_validation_webform_webform_validation($form_state['values']['details']['nid'])) {
foreach ($webform_validation_rules as $webform_validation_rule) {
switch ($webform_validation_rule['validator']) {
case 'min_length':
......
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