You are here

function makemeeting_simplepoll_pollpanel_form in Make Meeting Scheduler 6

makemeeting_simplepoll_pollpanel_form()

This is the form for voting

Parameters

mixed $form_state:

mixed $node:

1 string reference to 'makemeeting_simplepoll_pollpanel_form'
node_makemeeting_simplepoll_view in ./makemeeting_simplepoll.module
node_view()

File

./makemeeting_simplepoll.module, line 489
Make Meeting Simple Poll module

Code

function makemeeting_simplepoll_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_simplepoll_pollpanel',
    '#attributes' => array(
      'answers' => $node->answers,
      'votes' => $node->votes,
      'multiple_allowed' => $node->multiple_allowed,
      '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;
}