function theme_task_list

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 theme.maintenance.inc theme_task_list($variables)
cle7 theme.maintenance.inc theme_task_list($variables)
elmsmedia7 theme.maintenance.inc theme_task_list($variables)
icor7 theme.maintenance.inc theme_task_list($variables)
meedjum_blog7 theme.maintenance.inc theme_task_list($variables)
mooc7 theme.maintenance.inc theme_task_list($variables)

Returns HTML for a list of maintenance tasks to perform.

Parameters

$variables: An associative array containing:

  • items: An associative array of maintenance tasks.
  • active: The key for the currently active maintenance task.

Related topics

2 theme calls to theme_task_list()
install_display_output in includes/install.core.inc
Displays themed installer output and ends the page request.
update_task_list in ./update.php
Adds the update task list to the current page.
3 string references to the theme hook from theme_task_list()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

drupal_common_theme in includes/common.inc
Provides theme registration for themes across .inc files.
install_display_output in includes/install.core.inc
Displays themed installer output and ends the page request.
update_task_list in ./update.php
Adds the update task list to the current page.

File

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

Code

function theme_task_list($variables) {
  $items = $variables['items'];
  $active = $variables['active'];

  $done = isset($items[$active]) || $active == NULL;
  $output = '<h2 class="element-invisible">Installation tasks</h2>';
  $output .= '<ol class="task-list">';

  foreach ($items as $k => $item) {
    if ($active == $k) {
      $class = 'active';
      $status = '(' . t('active') . ')';
      $done = FALSE;
    }
    else {
      $class = $done ? 'done' : '';
      $status = $done ? '(' . t('done') . ')' : '';
    }
    $output .= '<li';
    $output .= ($class ? ' class="' . $class . '"' : '') . '>';
    $output .= $item;
    $output .= ($status ? '<span class="element-invisible">' . $status . '</span>' : '');
    $output .= '</li>';
  }
  $output .= '</ol>';
  return $output;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.