$warning=t('The jquery.validate files that are included in the module are deprecated and will be removed in the next version. Please download and enable the libraries module and download the !link and place them under sites/all/libraries/jquery.validate.',
array('!link'=>l(t('latest version of jQuery validate'),'http://bassistance.de/jquery-plugins/jquery-plugin-validation/')));
@@ -88,6 +88,8 @@ function clientside_validation_libraries_info() {
functionclientside_validation_requirements(){
// make sure we don't crash the site. Previous versions did not have libraries
// as dependency. They will need to run update.php first.
$warning=t('The jquery.validate files that are included in the module are deprecated and will be removed in the next version. Please download and enable the libraries module and download the !link and place them under sites/all/libraries/jquery.validate.',
array('!link'=>l(t('latest version of jQuery validate'),'http://bassistance.de/jquery-plugins/jquery-plugin-validation/')));
if(module_exists('libraries')){
$library=libraries_detect('jquery.validate');
if($library&&!empty($library['installed'])){
...
...
@@ -103,12 +105,19 @@ function clientside_validation_requirements() {
returnarray(
'clientside_validation'=>array(
'title'=>t('jquery.validate.js'),
'value'=>$library?$library['error message']:t('Could not detect jquery.validate library'),
'severity'=>REQUIREMENT_ERROR,
'value'=>($library?$library['error message']:t('Could not detect jquery.validate library')).$warning,
'severity'=>REQUIREMENT_WARNING,
),
);
}
}
returnarray(
'clientside_validation'=>array(
'title'=>t('jquery.validate.js'),
'value'=>$warning,
'severity'=>REQUIREMENT_WARNING,
),
);
}
/**
...
...
@@ -400,11 +409,17 @@ function clientside_validation_webform_after_build(&$form, &$form_state) {