I have a couple questions regarding the subscriber form that I'm hoping to have someone clear up:
1) Can I have multiple subscriber forms blocks?
My frontpage page template is different than the rest of my site, so the region I want the subscriber form designated to on the frontpage page template is a different region on the other page template.
2) Is there a way to copy and paste the PHP for the subscriber form into a block or to change the template of the subscriber form?
Right now I'm attempting to do it in my template.php file but there things like getting rid of the "user@example.com" that isn't working because I imagine you're doing it with jQuery and not a placeholder. I was just hoping for some more flexibility in moving things around like the error message.
function themename_form_alter(&$form, &$form_state, $form_id) {
if ($form_id == 'newsletter_subscribe_form') {
$form['email']['#default_value'] = t('');
$form['email']['#value'] = t('');
$form['email']['#attributes']['placeholder'] = t('Enter your email address here...');
$form['newsletter-submit']['#value'] = t('Subscribe Now');
}
return $form;
}
Thanks for your time in advance.
Comments
Comment #1
yazzou CreditAttribution: yazzou commentedHello
I also would like to have the possibility to alter "user@example.com" default value.