Moving the statistics out of the admin pages allows site administrators to make them public using permissions. A lot of sites, however not the majority, have made their statistics publicly available. Permissions could be set to make the statistics private by default and we could create a permission for each type of statistics, so admins can keep the more sensitive information to themselves.

CommentFileSizeAuthor
#1 statistics_00.patch21.66 KBXano
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Xano’s picture

Title: Move statistics out of the administration pages » Move statistics out of the administration pages and add permissions
Assigned: Unassigned » Xano
FileSize
21.66 KB

Just figured "Why not now?"

The attached patch moves the statistics pages out of the admin pages. To list the items below 'Statistics' (a new menu item) I changed node_add_page() and theme_node_add_list() (and moved them to menu.inc) so they can be used for general purposes, as a replacement of D5's MENU_ITEM_GROUPING. Any menu item can simply call menu_list() with a class as the only parameter (to allow for more flexible styling) and it automatically returns a list of all its children.

Permissions for the statistics pages are yet to come.

Anonymous’s picture

Status: Active » Closed (won't fix)
Xano’s picture

Why, if I may ask?

Xano’s picture

Assigned: Xano » Unassigned