Update core 8.3.0
This commit is contained in:
parent
da7a7918f8
commit
cd7a898e66
6144 changed files with 132297 additions and 87747 deletions
|
@ -40,11 +40,11 @@ function hook_update_projects_alter(&$projects) {
|
|||
|
||||
// Add a disabled module to the list.
|
||||
// The key for the array should be the machine-readable project "short name".
|
||||
$projects['disabled_project_name'] = array(
|
||||
$projects['disabled_project_name'] = [
|
||||
// Machine-readable project short name (same as the array key above).
|
||||
'name' => 'disabled_project_name',
|
||||
// Array of values from the main .info.yml file for this project.
|
||||
'info' => array(
|
||||
'info' => [
|
||||
'name' => 'Some disabled module',
|
||||
'description' => 'A module not enabled on the site that you want to see in the available updates report.',
|
||||
'version' => '8.x-1.0',
|
||||
|
@ -52,7 +52,7 @@ function hook_update_projects_alter(&$projects) {
|
|||
// The maximum file change time (the "ctime" returned by the filectime()
|
||||
// PHP method) for all of the .info.yml files included in this project.
|
||||
'_info_file_ctime' => 1243888165,
|
||||
),
|
||||
],
|
||||
// The date stamp when the project was released, if known. If the disabled
|
||||
// project was an officially packaged release from drupal.org, this will
|
||||
// be included in the .info.yml file as the 'datestamp' field. This only
|
||||
|
@ -62,15 +62,15 @@ function hook_update_projects_alter(&$projects) {
|
|||
// Any modules (or themes) included in this project. Keyed by machine-
|
||||
// readable "short name", value is the human-readable project name printed
|
||||
// in the UI.
|
||||
'includes' => array(
|
||||
'includes' => [
|
||||
'disabled_project' => 'Disabled module',
|
||||
'disabled_project_helper' => 'Disabled module helper module',
|
||||
'disabled_project_foo' => 'Disabled module foo add-on module',
|
||||
),
|
||||
],
|
||||
// Does this project contain a 'module', 'theme', 'disabled-module', or
|
||||
// 'disabled-theme'?
|
||||
'project_type' => 'disabled-module',
|
||||
);
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -92,11 +92,11 @@ function hook_update_status_alter(&$projects) {
|
|||
$projects[$project]['status'] = UPDATE_NOT_CHECKED;
|
||||
$projects[$project]['reason'] = t('Ignored from settings');
|
||||
if (!empty($settings[$project]['notes'])) {
|
||||
$projects[$project]['extra'][] = array(
|
||||
'class' => array('admin-note'),
|
||||
$projects[$project]['extra'][] = [
|
||||
'class' => ['admin-note'],
|
||||
'label' => t('Administrator note'),
|
||||
'data' => $settings[$project]['notes'],
|
||||
);
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -120,9 +120,9 @@ function hook_update_status_alter(&$projects) {
|
|||
* @ingroup update_manager_file
|
||||
*/
|
||||
function hook_verify_update_archive($project, $archive_file, $directory) {
|
||||
$errors = array();
|
||||
$errors = [];
|
||||
if (!file_exists($directory)) {
|
||||
$errors[] = t('The %directory does not exist.', array('%directory' => $directory));
|
||||
$errors[] = t('The %directory does not exist.', ['%directory' => $directory]);
|
||||
}
|
||||
// Add other checks on the archive integrity here.
|
||||
return $errors;
|
||||
|
|
Reference in a new issue