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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

fuerst’s picture

Status: Active » Postponed

Currently I don't have time to implement this. I welcome patches though.

B-Prod’s picture

Version: 6.x-1.1 » 6.x-1.x-dev
Status: Postponed » Needs review
FileSize
2.39 KB

I 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...

fuerst’s picture

Status: Needs review » Needs work

Thanks 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 using contact_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.

B-Prod’s picture

Oh 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.

cr0ss’s picture

Perhaps 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.

Summit’s picture

Hi,
yes please. It would be great if you could add this feature to 6.x dev also!
Greetings, Martijn