function patch_manager_list in Patch manager 7
Same name and namespace in other branches
- 6 patch_manager.module \patch_manager_list()
Render the list depending on what we have available (simple, or views_bulk_operations).
1 string reference to 'patch_manager_list'
- patch_manager_menu in ./
patch_manager.module - Implements hook_menu().
File
- ./
patch_manager.module, line 300 - Patch manager provides developers with tools for managing patches.
Code
function patch_manager_list() {
$display_id = module_exists('views_bulk_operations') ? 'bulklist' : 'simplelist';
$view = views_get_view('patches');
if (!$view || !$view
->access($display_id)) {
return drupal_not_found();
}
drupal_set_title($view
->get_title());
return $view
->preview($display_id);
}