function ClientsConnectionDrupalRESTTestNodeRetrieve::formValidate in Web Service Clients 7.3
Validate test form input.
File
- connections/
clients_drupal_rest/ clients_drupal_rest.testing.inc, line 112 - Contains classes for Client connection testing.
Class
- ClientsConnectionDrupalRESTTestNodeRetrieve
- Test node load from a Drupal Services REST connection.
Code
function formValidate(&$button_form_values) {
if (!is_numeric($button_form_values['params']['nid'])) {
form_set_error('buttons][node_load][nid', t('Node id must be numeric.'));
}
}