You are here

function _evercurrent_get_environment_url in Evercurrent 7.2

Same name and namespace in other branches
  1. 7 evercurrent.send.inc \_evercurrent_get_environment_url()

Helper function.

Get an environment URL and ship together with the results. First we see if we have our own explicit variable set. This is only used for this purpose, and it allows the module to be flexible in terms of determining the correct environment.

If we do not find this variable, we fallback to the $base url.

1 call to _evercurrent_get_environment_url()
evercurrent_run_update_check in ./evercurrent.send.inc

File

./evercurrent.send.inc, line 156

Code

function _evercurrent_get_environment_url() {
  global $base_url;
  $env_url = variable_get('evercurrent_environment_url');

  // If env_url, send that.
  $url = $env_url ? $env_url : $base_url;
  return $url;
}