1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Please sort the add-on names in the User Group Permissions

Discussion in 'XenForo Suggestions' started by AndyB, Aug 8, 2014.

  1. AndyB

    AndyB Well-Known Member

    Please sort the add-on names in the User Group Permissions.

    Example:

    Admin CP -> Users -> User Groups -> Administrators

    Add-on names are in random order and that makes it difficult to find the add-on you're looking for:

    pic001.jpg

    By adding ", addon_id" to the following query:

    library/XenForo/Model/Permission.php

    PHP:
        /**
         * Gets all permission interface groups in order.
         *
         * @return array Format: [interface group id] => interface group info
         */
        
    public function getAllPermissionInterfaceGroups()
        {
            return 
    $this->fetchAllKeyed('
                SELECT *
                FROM xf_permission_interface_group
                ORDER BY display_order, addon_id
            '
    'interface_group_id');
        }
    all add-ons would be sorted by the add-on name.
     
    Last edited: Aug 9, 2014

Share This Page