1 update.php update_task_list($set_active = NULL)

Adds the update task list to the current page.

File

core/update.php, line 399
Administrative page for handling updates from one Backdrop version to another.

Code

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

  // Default list of tasks.
  $tasks = array(
    'requirements' => 'Verify requirements',
    'info' => 'Overview',
    'select' => 'Review updates',
    'run' => 'Run updates',
    'finished' => 'Review log',
  );

  // Only show the task list on the left sidebar if the logged-in user is has
  // permission to perform updates, or if the update_free_access' setting in
  // settings.php has been set to TRUE.
  if (settings_get('update_free_access') || user_access('administer software updates')) {
    return theme('task_list', array('items' => $tasks, 'active' => $active));
  }
}