From 866491563ee426caccf545bd7b4f57a03e26fabf Mon Sep 17 00:00:00 2001 From: catch <catch@35733.no-reply.drupal.org> Date: Tue, 2 Feb 2021 10:24:47 +0000 Subject: [PATCH] Issue #3178175 by longwave, Kristen Pol: aggregator_requirements() checks that cURL is available when Guzzle does not need it --- core/modules/aggregator/aggregator.install | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/core/modules/aggregator/aggregator.install b/core/modules/aggregator/aggregator.install index 66d728335a48..800802962c33 100644 --- a/core/modules/aggregator/aggregator.install +++ b/core/modules/aggregator/aggregator.install @@ -5,23 +5,6 @@ * Install, update and uninstall functions for the aggregator module. */ -/** - * Implements hook_requirements(). - */ -function aggregator_requirements($phase) { - $has_curl = function_exists('curl_init'); - $requirements = []; - $requirements['curl'] = [ - 'title' => t('cURL'), - 'value' => $has_curl ? t('Enabled') : t('Not found'), - ]; - if (!$has_curl) { - $requirements['curl']['severity'] = REQUIREMENT_ERROR; - $requirements['curl']['description'] = t('The Aggregator module requires the <a href="https://secure.php.net/manual/en/curl.setup.php">PHP cURL library</a>. For more information, see the <a href="https://www.drupal.org/docs/system-requirements/php-requirements#curl">online information on installing the PHP cURL extension</a>.'); - } - return $requirements; -} - /** * Implements hook_update_last_removed(). */ -- GitLab