';
$group1 .= form_checkbox(t('Need more choices'), 'morechoices', 1, 0, t("If the amount of boxes above isn't enough, check this box and click the Preview button below to add some more."));
+ $group1 .= "
";
$output .= form_group(t('Choices'), $group1);
@@ -163,6 +199,13 @@ function poll_form(&$node) {
return $output;
}
+/*
+ * Implementation of hook_onload()
+ */
+function poll_onload() {
+ return array('pollOnload()');
+}
+
function poll_insert($node) {
if (!user_access('administer nodes')) {
// Make sure all votes are 0 initially