function noreferrer_admin_validate in No Referrer 7
Admin settings validate handler.
File
- ./
noreferrer.admin.inc, line 59 - Admin settings callbacks for no referrer module.
Code
function noreferrer_admin_validate($form, &$form_state) {
if (strlen($form_state['values']['noreferrer_subscribe_url']) && !valid_url($form_state['values']['noreferrer_subscribe_url'], TRUE)) {
form_set_error('noreferrer_subscribe_url', t('Please provide a valid URL.'));
}
}