You are here

function jw_player_library_url_regex in JW Player 7.2

Same name and namespace in other branches
  1. 8 jw_player.module \jw_player_library_url_regex()

Return regex to check JW Player library URL format.

Return value

string The regex string as defined in the function.

2 calls to jw_player_library_url_regex()
jw_player_ctools_export_ui_form_validate in plugins/export_ui/jw_player_ctools_export_ui.inc
Validator for jw_player_ctools_export_ui_form().
jw_player_settings_form_validate in ./jw_player.admin.inc
General settings form validate.

File

./jw_player.module, line 1085
Adds a theme function which allows theme developers to use the JW Player.

Code

function jw_player_library_url_regex() {
  return '/^(https?:|)?\\/\\/content\\.jwplatform\\.com\\/libraries\\/([a-zA-Z0-9]*)\\.js$/i';
}