Commit c8d0e5a7 authored by greggles's avatar greggles

feature #399806 by Manuel Garcia: Wrap the comment-notify form elements in a...

feature #399806 by Manuel Garcia: Wrap the comment-notify form elements in a DIV and remove needless br
parent d06a8cf5
......@@ -8,10 +8,11 @@
margin-left: 2em;
}
#notify_clear {
clear: both;
#comment-notify .form-radios {
overflow: hidden;
height: 100%;
}
#edit-notify-type-2-wrapper {
margin-left: 1em;
}
\ No newline at end of file
}
......@@ -109,6 +109,7 @@ function comment_notify_form_alter(&$form, &$form_state, $form_id) {
}
// If you want to hide this on your site see http://drupal.org/node/322482
$form['notify_open'] = array('#value' => '<div id="comment-notify">');
$form['notify'] = array(
'#type' => 'checkbox',
'#title' => t('Notify me when new comments are posted'),
......@@ -134,8 +135,7 @@ function comment_notify_form_alter(&$form, &$form_state, $form_id) {
$form['notify']['#default_value'] = $notify;
$form['notify_type']['#default_value'] = $notify;
}
// TODO: I wish this didn't have to be here, but I can't figure out what makes it better. Patches welcome.
$form['notify_clearit'] = array('#value' => '<br id="notify_clear">', '#weight' => 9);
$form['notify_close'] = array('#value' => '</div>', '#weight' => 9);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment