You are here

function cdn_admin_advanced_settings_form_validate in CDN 6

Default validate callback for the advancedsettings form.

File

./cdn.admin.inc, line 169
Settings administration UI.

Code

function cdn_admin_advanced_settings_form_validate($form, &$form_state) {

  // Validate the synced files DB when it's filled out on the advanced
  // settings form.
  if (isset($form_state['values'][CDN_ADVANCED_SYNCED_FILES_DB_VARIABLE])) {
    $synced_files_db = $form_state['values'][CDN_ADVANCED_SYNCED_FILES_DB_VARIABLE];
    _validate_synced_files_db($synced_files_db, CDN_ADVANCED_SYNCED_FILES_DB_VARIABLE);
  }
}