Add contact block

pp - November 30, 2008 - 08:54
Project:Contact Forms
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Add contact block.
See the patch. Patch contain the patch http://drupal.org/node/340729

AttachmentSize
contact_forms-block.patch4.11 KB

#1

pp - December 1, 2008 - 14:52

I corrected the patch. Add hook_menu deleting to this patch. (I hope this isn't too dirty.) http://drupal.org/node/340729

AttachmentSize
contact_forms_block_and_menu.patch 3.84 KB

#2

behindthepage - January 1, 2009 - 05:11

Hi Palócz,

I am not convinced that I need or want to add a contact block to my module. It might be better in a seperate module.

What is the advantage or need to add if arg(0) == 'contact' to the if then statement?

-  if ($path == 'contact' && variable_get('contactform_redirect', 'contact') != 'contact') {
+  if (arg(0) == 'contact' && $path == 'contact' && variable_get('contactform_redirect', 'contact') != 'contact') {

Thanks for your input.
Regards
Geoff

#3

pp - January 13, 2009 - 09:35

Hi Geoff!

"I am not convinced that I need or want to add a contact block to my module. It might be better in a seperate module."

When I wanted to have this feature I was searching for a module which implement it. I found your module (contact_form). I didn't want to make another module which is similar to yours but have small differences. I thought it is too small thing for totally new module.
I think we shall work together on the contact_form module.

"What is the advantage or need to add if arg(0) == 'contact' to the if then statement?"

You are right! It isn't necessary!

pp

#4

deepM - May 15, 2009 - 13:52

I would like to have BLOCK option for form, so i can easily attach it to some node types and not being necessary to change the page, but have all on the same page. Problem is seems to me this patch doesnt work on latest realase. It looks for 1.11 and there is no 1.11 in d6. so maybe u put it on wrong version and if so, please make one for 6.

thanx

#5

behindthepage - May 16, 2009 - 10:48

Try the module - Webform block
http://drupal.org/project/webformblock

regards
Geoff

#6

behindthepage - October 2, 2009 - 20:00
Status:needs review» closed
 
 

Drupal is a registered trademark of Dries Buytaert.