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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | statistics_00.patch | 21.66 KB | xano |
Comments
Comment #1
xanoJust 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()andtheme_node_add_list()(and moved them to menu.inc) so they can be used for general purposes, as a replacement of D5'sMENU_ITEM_GROUPING. Any menu item can simply callmenu_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.
Comment #2
Anonymous (not verified) commentedComment #3
xanoWhy, if I may ask?
Comment #4
xano