more features

Max_Headroom - January 1, 2009 - 21:35
Project:User Quota
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

Hi I urgently had to go look for another solution because porting a module I intended to use to D6 was going to take too long. Then I found user_quota.

I've added a whole lot of features to make it do what I wanted:

  • Block function to display user quota in sidebar.
  • Added user quota and user history to user page.
  • Users only see their own quota (besides admin).
  • Configurable Action so that other modules and events (triggers) can add quotas.
  • Admin settings menu.
  • I also changed the way quota works on user who has no quotas assigned. Instead of being unlimited, new users have 0 quota, and if their quota is set above a certain amount (settable in admin settings) they have unlimited.
  • I have made quite a few changes to the code, such as the menu and moved code into helper functions.

Please note the changes was done for my own needs and is not intended as a replacement for the current version. I'm posting the patch of changes here so the developer can makes use of it or any functions any way he wants.

AttachmentSize
user_quota.module.patch16.61 KB

#1

greggles - January 1, 2009 - 23:15

I like a lot of these things, but it's really hard to review them all when they are all together like this. I know it's harder to make individual patches out of them.

# Admin settings menu.

Can you expand on what the goal is with this?

# I also changed the way quota works on user who has no quotas assigned. Instead of being unlimited, new users have 0 quota, and if their quota is set above a certain amount (settable in admin settings) they have unlimited.

Yes, let's keep that in #352873: Handling of unlimit and empty quota.

#2

Max_Headroom - January 2, 2009 - 12:44

I will over the next few days make individual patches. I was on a roll :)

My plan with Admin settings menu is for global settings, like the unlimited control and also (in this case) a custom message for why a user is blocked.

edit: I think we should get the unlimited issue sort first before I start posting patches, as a lot of the functions depends on that.

#3

sam.e2 - January 13, 2009 - 17:02

All those extra features sound great, and very useful in wider contexts.

How're they coming?

 
 

Drupal is a registered trademark of Dries Buytaert.