hook alter for _simplenews_subscription_manager_form($subscription)

gafir777 - October 31, 2009 - 15:37
Project:Simplenews
Version:6.x-1.0-rc6
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hello, I'm trying to modify the form (the form block actually) to hide the subscribe / unsubscribe radio buttons and instead use an input hidden type with a value = "Subscribe".

I found the function called is _simplenews_subscription_manager_form($subscription) from other functions. Is there a way I could just change the form without making a custom function, then call the new custom functions from everywhere where _simplenews_subscription_manager_form($subscription) is executed?

I didn't found any post that really covered it, but if there is one for Drupal 6, that would be great.

Thanks!

#1

Sutharsan - October 31, 2009 - 21:51

or write a module with a hook_form_alter() or use CSS to hide the radio's.

#2

gafir777 - November 2, 2009 - 19:41

thanks!

#3

Sutharsan - November 3, 2009 - 08:49
Status:active» fixed

Feel free to close your own support issues when answered.

#4

System Message - November 17, 2009 - 08:50
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.