function theme_patchinfo_patches in PatchInfo 7
Returns HTML listing all patches of a module and its submodules.
Parameters
array $variables: An associative array containing:
- patches: Array of patch information for a module and its submodules.
- is_core: TRUE, if the patches are in Drupal core. Otherwise FALSE.
2 theme calls to theme_patchinfo_patches()
- patchinfo_form_update_manager_update_form_alter in ./
patchinfo.module - Implements hook_form_FORM_ID_alter() for update_manager_update_form().
- patchinfo_update_report in ./
patchinfo.module - Custom implementation of theme_update_report().
File
- ./
patchinfo.module, line 617 - Patch Info primary module file.
Code
function theme_patchinfo_patches(array $variables) {
$patches = $variables['patches'];
$is_core = $variables['is_core'];
// Generate markup for patch list.
$output = '<div class="patchinfo-patches">';
if ($is_core) {
$output .= '<p class="patchinfo-patches-core">';
$output .= t('Before you do a manual update, please note, that the following patches are currently applied to Drupal core:');
$output .= '</p>';
}
$output .= '<div class="patchinfo-patches-title">' . t('Patches:') . '</div>';
$patches = array_map('filter_xss', $patches);
$output .= theme('item_list', array(
'items' => $patches,
));
$output .= '</div>';
return $output;
}