Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am looking for a module which exposes the default global contact from w/category selection as a block.
This module creates an individual form for each category, I would have expected it to also provide the global contact form as a block as well.
Comment | File | Size | Author |
---|---|---|---|
#2 | global_contact_form_as_block-663308-2.patch | 2.39 KB | B-Prod |
Comments
Comment #1
fuerst CreditAttribution: fuerst commentedCurrently I don't have time to implement this. I welcome patches though.
Comment #2
B-Prod CreditAttribution: B-Prod commentedI first made changes on the 6.x-1.1 version and performed some successful tests.
But when came the time to create a patch against the DEV version, I noticed that this one was very different from the released one.
So I adapted my changes to fit the DEV version, but I did not performed as many tests as before.
If the DEV version is stable, it could be really great to create a new release...
Comment #3
fuerst CreditAttribution: fuerst commentedThanks for the patch, works well so far.
I don't understand though why
contact_form_blocks_get_categories()
needs to switch between Global and Contact depending on the parameter$block_info
. I rather think it should work this way: Insert the static Global item everytime except when calling the settings page usingcontact_form_blocks_settings()
. Here we only want to have the actual categories displayed.It also seems to be necessary to insert the static Global item only when categories are available.
Comment #4
B-Prod CreditAttribution: B-Prod commentedOh sorry this patch is quite old and I do not remember what it did... If I have some time, I will try to have a look on that.
Comment #5
cr0ss CreditAttribution: cr0ss commentedPerhaps this could help, but I've just pushed this feature to 7.x dev version of module.
In can this request is still active I can take a look to 6th version to add this feature.
Comment #6
Summit CreditAttribution: Summit commentedHi,
yes please. It would be great if you could add this feature to 6.x dev also!
Greetings, Martijn