function system_authorized_get_url

Return the URL for the authorize.php script.

Parameters

array $options: Optional array of options to pass to url().

Return value

The full URL to authorize.php, using HTTPS if available.

See also

system_authorized_init()

Related topics

6 calls to system_authorized_get_url()
overlay_drupal_goto_alter in drupal/core/modules/overlay/overlay.module
Implements hook_drupal_goto_alter().
system_authorized_batch_process in drupal/core/modules/system/system.module
Use authorize.php to run batch_process().
system_authorized_batch_processing_url in drupal/core/modules/system/system.module
Returns the URL for the authorize.php script when it is processing a batch.
system_authorized_run in drupal/core/modules/system/system.module
Setup and invoke an operation using authorize.php.
update_manager_install_form_submit in drupal/core/modules/update/update.manager.inc
Form submission handler for update_manager_install_form().

... See full list

File

drupal/core/modules/system/system.module, line 2412
Configuration system that lets administrators modify the workings of the site.

Code

function system_authorized_get_url(array $options = array()) {
  global $base_url;

  // Force HTTPS if available, regardless of what the caller specifies.
  $options['https'] = TRUE;

  // Prefix with $base_url so url() treats it as an external link.
  return url($base_url . '/core/authorize.php', $options);
}