You are here

function template_preprocess_upgrade_status_html_export in Upgrade Status 8

Same name and namespace in other branches
  1. 8.3 upgrade_status.module \template_preprocess_upgrade_status_html_export()
  2. 8.2 upgrade_status.module \template_preprocess_upgrade_status_html_export()

Preprocess project list for HTML export.

Parameters

array $variables: Array of template variables.

1 call to template_preprocess_upgrade_status_html_export()
template_preprocess_upgrade_status_ascii_export in ./upgrade_status.module
Preprocess project list for ASCII export.

File

./upgrade_status.module, line 43

Code

function template_preprocess_upgrade_status_html_export(&$variables) {
  $projects = $variables['projects'];
  $types = [
    'custom',
    'contrib',
  ];
  foreach ($types as $type) {
    if (!empty($projects[$type])) {
      foreach ($projects[$type] as $key => $project) {
        $variables['projects'][$type][$key]['name'] = $projects[$type][$key]['#title'];
      }
    }
  }
}