function drupal_requirements_url
Same name in other branches
- 9 core/includes/install.inc \drupal_requirements_url()
- 8.9.x core/includes/install.inc \drupal_requirements_url()
- 10 core/includes/install.inc \drupal_requirements_url()
- 11.x core/includes/install.inc \drupal_requirements_url()
Returns a URL for proceeding to the next page after a requirements problem.
This function can be called by low-level scripts (such as install.php and update.php) and returns a URL that can be used to attempt to proceed to the next step of the script.
Parameters
$severity: The severity of the requirements problem, as returned by drupal_requirements_severity().
Return value
A URL for attempting to proceed to the next step of the script. The URL is not sanitized, so it still needs to be run through check_url() if it will be used as an HTML attribute value.
See also
2 calls to drupal_requirements_url()
- install_verify_requirements in includes/
install.core.inc - Verifies the requirements for installing Drupal.
- update_check_requirements in ./
update.php - Checks update requirements and reports errors and (optionally) warnings.
File
-
includes/
install.inc, line 1101
Code
function drupal_requirements_url($severity) {
$query = array();
// If there are no errors, only warnings, append 'continue=1' to the URL so
// the user can bypass this screen on the next page load.
if ($severity == REQUIREMENT_WARNING) {
$query['continue'] = 1;
}
return drupal_current_script_url($query);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.