Closed (fixed)
Project:
Contact Attach
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
31 Mar 2012 at 16:52 UTC
Updated:
20 Apr 2012 at 12:18 UTC
Since D7 no longer uses the upload_* variables for per role file validation settings, we need to implement this in Contact Attach. The variables should be set on the contact_attach_admin_settings form. This form now needs a form validation handler as well to check for valid values. Also add variable deletion for all contact attach variables in the implementation of hook_uninstall(). We can no longer know the exact names of the variables, as they vary according to role ID, so we can no longer call variable_del. A db_delete('variable')->condition('name', 'contact_attach_%', 'LIKE')... should do the trick.
Comments
Comment #1
Tor Arne Thune commentedCommitted and pushed: ca688cb.
Comment #3
Tor Arne Thune commented