You are here

function invite_settings_form_validate in Invite 7.4

Implements hook_validate().

File

includes/invite.admin.inc, line 363

Code

function invite_settings_form_validate($form, &$form_state) {
  $invite_registration_path = $form_state['values']['invite_registration_path'];
  $is_valid_path = drupal_valid_path($invite_registration_path);
  if (!$is_valid_path) {
    form_set_error('invite_registration_path', t('This path is invalid.'));
  }
}