The attached patch changes the hardcoded value $node->type == 'webform' so that any webform enabled type can be used. It also sets a message when saving a limit.

CommentFileSizeAuthor
allow_all_webform_enabled_types.patch2 KBspan

Comments

span’s picture

Oops, something seems to have gone wrong when patching. Code should be simple enough to change though but watchout for this change which I did not implement:

-        $count = db_result(db_query('SELECT count(*) FROM {webform_submitted_data} WHERE nid = %d', $node->nid));	
+        $count = db_result(db_query('SELECT count(*) FROM {webform_submissions} WHERE nid = %d', $node->nid));
donnycarette’s picture

Status: Needs review » Closed (fixed)

Fixed in the 6.x-1.5 release
Span, thanks for your patch!