function sharethis_sharethis_content_type_edit_form_validate in ShareThis 7.2
Validates the sharethis content type edit form.
File
- plugins/
content_types/ sharethis/ sharethis.inc, line 88
Code
function sharethis_sharethis_content_type_edit_form_validate($form, &$form_state) {
if ($form_state['values']['path'] == 'external' && !valid_url($form_state['values']['path-external'], TRUE)) {
form_set_error('path-external', t('Invalid URL'));
}
}