You are here

function patch_manager_list in Patch manager 6

Same name and namespace in other branches
  1. 7 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
Implementation of hook_menu().

File

./patch_manager.module, line 263
patch_manager.module 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);
}