You are here

function theme_task_list in Drupal 6

Same name and namespace in other branches
  1. 7 includes/theme.maintenance.inc \theme_task_list()

Return a themed list of maintenance tasks to perform.

Related topics

1 call to theme_task_list()
install_task_list in ./install.php
Add the installation task list to the current page.
1 theme call to theme_task_list()
update_task_list in ./update.php
Add the update task list to the current page.

File

includes/theme.maintenance.inc, line 86
Theming for maintenance pages.

Code

function theme_task_list($items, $active = NULL) {
  $done = isset($items[$active]) || $active == NULL;
  $output = '<ol class="task-list">';
  foreach ($items as $k => $item) {
    if ($active == $k) {
      $class = 'active';
      $done = false;
    }
    else {
      $class = $done ? 'done' : '';
    }
    $output .= '<li class="' . $class . '">' . $item . '</li>';
  }
  $output .= '</ol>';
  return $output;
}