function salesforce_settings_form_validate in Salesforce Suite 7.3
Validation handler for salesforce_settings_form().
1 string reference to 'salesforce_settings_form_validate'
- salesforce_settings_form in ./
salesforce.module - Generate the Salesforce settings form.
File
- ./
salesforce.module, line 308 - API and module for Salesforce integration.
Code
function salesforce_settings_form_validate($form, &$form_state) {
// Convert version to the array of api info.
$version = $form_state['values']['salesforce_api_version'];
if ($version) {
// Loop through available api versions to find a match.
foreach ($form_state['api_list'] as $api) {
if ($api['version'] == $version) {
form_set_value($form['salesforce_api_version'], $api, $form_state);
break;
}
}
}
}