1 restore.php restore_task_list($set_active = NULL)

Adds the restore task list to the current page.

File

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

Code

function restore_task_list($set_active = NULL) {
  static $active;
  if ($set_active) {
    $active = $set_active;
  }

  // Default list of tasks.
  $tasks = array(
    'info' => 'Overview',
    'select' => 'Select backup',
    'restore' => 'Restore',
    'results' => 'Review',
  );

  // Only show the task list on the left sidebar if the logged-in user has
  // permission to restore backups, or if the "restore_free_access" setting in
  // settings.php has been set to TRUE.
  if (restore_access_allowed() && backup_get_backup_directory()) {
    return theme('task_list', array('items' => $tasks, 'active' => $active));
  }
}