You are here

function pmpapi_config_form_validate in Public Media Platform API Integration 7

Form validation handler for pmpapi_push_admin_config().

File

./pmpapi.admin.inc, line 87
Basic admin forms, validators, and submit handlers for the PMPAPI module.

Code

function pmpapi_config_form_validate($form, &$form_state) {
  $base = $form_state['values']['pmpapi_base_url'];
  if (!valid_url($base, TRUE)) {
    form_set_error('pmpapi_base_url', t('Base URL must be a fully qualified URL.'));
  }
}