Issue #332796 by voleger, dww, Steve Dondley, ykhadilkar, Dave Reid, ankithashetty, Anybody, benjifisher, mstrelan, David_Rothstein, phenaproxima, Bojhan: Add permissions to the update.module to hide warnings
2022-05-16 20:31:03 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* Post update functions for Update Manager.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2022-08-11 12:02:30 +00:00
|
|
|
* Implements hook_removed_post_updates().
|
Issue #332796 by voleger, dww, Steve Dondley, ykhadilkar, Dave Reid, ankithashetty, Anybody, benjifisher, mstrelan, David_Rothstein, phenaproxima, Bojhan: Add permissions to the update.module to hide warnings
2022-05-16 20:31:03 +00:00
|
|
|
*/
|
2022-08-11 12:02:30 +00:00
|
|
|
function update_remove_post_updates() {
|
|
|
|
return [
|
|
|
|
'update_post_update_add_view_update_notifications_permission' => '10.0.0',
|
|
|
|
];
|
Issue #332796 by voleger, dww, Steve Dondley, ykhadilkar, Dave Reid, ankithashetty, Anybody, benjifisher, mstrelan, David_Rothstein, phenaproxima, Bojhan: Add permissions to the update.module to hide warnings
2022-05-16 20:31:03 +00:00
|
|
|
}
|
2023-07-26 17:30:33 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Updates update.settings:fetch.url config if it's still at the default.
|
|
|
|
*/
|
|
|
|
function update_post_update_set_blank_fetch_url_to_null() {
|
|
|
|
$update_settings = \Drupal::configFactory()->getEditable('update.settings');
|
|
|
|
if ($update_settings->get('fetch.url') === '') {
|
|
|
|
$update_settings
|
|
|
|
->set('fetch.url', NULL)
|
|
|
|
->save(TRUE);
|
|
|
|
}
|
|
|
|
}
|