You are here

function shurly_settings_form_validate in ShURLy 6

Same name and namespace in other branches
  1. 7 shurly.admin.inc \shurly_settings_form_validate()

File

./shurly.admin.inc, line 120
Administration pages for the Htaccess module.

Code

function shurly_settings_form_validate($form, $form_state) {
  $custom_base_url = $form_state['values']['shurly_base'];
  if (!valid_url($custom_base_url, TRUE)) {
    form_set_error('settings_shurly_base', t('The base URL is not valid.'));
  }
}