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

Tor Arne Thune’s picture

Status: Closed (fixed) » Fixed

Committed and pushed: ca688cb.

Status: Active » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Tor Arne Thune’s picture

Project: » Contact Attach
Version: » 7.x-1.x-dev
Status: Fixed » Closed (fixed)