You are here

function theme_patchinfo_excluded_modules in PatchInfo 7

Returns HTML for the excluded modules information.

Parameters

array $variables: An associative array containing:

  • excluded_modules: Array of machine readable names of modules excluded from update check.
1 theme call to theme_patchinfo_excluded_modules()
patchinfo_update_report in ./patchinfo.module
Custom implementation of theme_update_report().

File

./patchinfo.module, line 585
Patch Info primary module file.

Code

function theme_patchinfo_excluded_modules(array $variables) {
  $output = '';

  // Get excluded modules from variables.
  $excluded_modules = $variables['excluded_modules'];

  // Generate markup.
  if (count($excluded_modules) > 0) {
    $output .= '<div class="patchinfo-excluded-modules">';
    $output .= '<strong>' . t('Modules excluded from update check:') . '</strong>';
    $excluded_modules = array_map('check_plain', $excluded_modules);
    $output .= theme('item_list', array(
      'items' => $excluded_modules,
    ));
    $output .= '<p>' . t("If you don't want to exclude one of these modules any longer, please update your !settings.", array(
      '!settings' => l(t('settings'), 'admin/reports/updates/settings'),
    )) . '</p>';
    $output .= '</div>';
  }
  return $output;
}