function oauth_common_form_consumer_validate in OAuth 1.0 7.3
Validate handler for oauth_common_form_consumer
File
- ./
oauth_common.consumers.inc, line 188
Code
function oauth_common_form_consumer_validate($form, &$form_state) {
$callback = $form_state['values']['callback_url'];
if (!empty($callback) && (!parse_url($callback) || strstr($callback, '://') === FALSE)) {
form_set_error('callback_url', t('You must set a valid URL as a callback - http/https://some-path or custom://some-path'));
}
}