Active
Project:
File Picker
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 May 2012 at 17:28 UTC
Updated:
24 May 2012 at 15:20 UTC
When both modules are installed (Imagepicker and Filepicker) and in both quotas are set to 25 mb per user, will they add to 50 in total or do both modules share the quota?
Comments
Comment #1
hutch commentedEach module has it's own quota system. Using a helper module you could collect the info from both modules, a start would be to look at functions filepicker_get_all_bytes() and imagepicker_get_all_bytes()
Using theming you could modify things where you want.
Comment #2
kressin commentedI changed the path of file picker to use a common path with image picker. So far so good. Count is still different. I supposed because one module uses db_select('image picker') and the other db_select('filepicker'). Would it work if both modules used a common database, say db_select('image picker')?
Comment #3
hutch commentedPretty much a surefire way to break both.
Writing a helper module is the way to go, not that hard:
myhelper.info:
myhelper.module:
Access the test page with something like
http://mysite.com/myhelper_test