1 restore.php restore_disabled_page()

Renders a help page if access is allowed but backups are not enabled.

Return value

string: Rendered HTML warning with 403 status.

File

core/restore.php, line 252
Administrative page for restoring backup database and configuration files.

Code

function restore_disabled_page() {
  backdrop_set_title(st('Restore site backup'));

  $output = '';
  $output .= st('Backup and restore functionality is not enabled on this site. To enable creating and restoring backups, the !value value must be set in the !settings_file file.', array(
    '!value' => '<code>$settings[\'backup_directory\']</code>',
    '!settings_file' => '<code>settings.php</code>',
  ));
  $output .= ' ' . st('For more information, see the <a href="!url">online documentation on creating and restoring backups</a>.', array(
    '!url' => 'https://docs.backdropcms.org/documentation/creating-backups',
  ));
  $output = '<p>' . $output . '</p>';

  return $output;
}