function makemeeting_pollpanel_form in Make Meeting Scheduler 6
Same name and namespace in other branches
- 7 makemeeting.module \makemeeting_pollpanel_form()
The poll panel form
1 string reference to 'makemeeting_pollpanel_form'
- node_makemeeting_view in ./
makemeeting.module - If $teaser is TRUE, we return empty string, so we can hide the poll body from the list site/node.
File
- ./
makemeeting.module, line 583 - Make Meeting module
Code
function makemeeting_pollpanel_form(&$form_state, $node) {
$form['add_your_vote'] = array(
'#type' => 'fieldset',
'#title' => t('Add your vote'),
'#tree' => TRUE,
);
$form['add_your_vote']['pollpanel'] = array(
'#type' => 'makemeeting_pollpanel',
'#attributes' => array(
'days_and_options' => $node->days_and_options,
'answers' => $node->answers,
'multiple_allowed' => $node->multiple_allowed,
'maybe_option' => $node->maybe_option,
'secure' => $node->secure,
),
'#description' => t('Choose your name and select the answers.'),
);
$form['node_id'] = array(
'#type' => 'value',
'#value' => $node->nid,
);
$form['poll_url'] = array(
'#type' => 'value',
'#value' => $node->poll_url,
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Submit'),
);
return $form;
}