Project:Checkout (Content locking)
Version:master
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

This issue is actually related to 5.x.

It would be great, if check-out would implement the new hook_admin_menu() to display a new top-level menu item (below /q=admin) containing links to

  1. all currently checked-out contents of the logged-on user
  2. all currently checked-out contents of all users, if uid = 1

The actual code would look similar to:

<?php
function checkout_admin_menu(&$admin_menu, $may_cache) {
  if (!
$may_cache) {
   
$mid_admin  = $admin_menu['index']['admin'];
   
$mid_checkout = admin_menu_add_item($admin_menu, $mid_admin, array(
     
'title' => $count_anon .' / '. $count_auth .' '. $icon_users,
     
'path' => user_access('administer users') ? 'admin/user/user' : '',
     
'weight' => -90,
     
'class' => 'admin_menu-action admin_menu-icon admin_menu-users',
    ));
   
$checked_out = checkout_get_contents(); // Custom code here.
   
foreach ($checked_out as $content) {
     
admin_menu_add_item($admin_menu, $mid_admin, array(
       
'title' => $content->title,
       
'path' => $content->path,
      ));
    }
  }
}
?>
nobody click here