Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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) CreditAttribution: Anonymous commentedComment #3
XanoWhy, if I may ask?
Comment #4
Xano