You are here

function advpoll_convert_form in Advanced Poll 5

Same name and namespace in other branches
  1. 6.3 advpoll_convert.module \advpoll_convert_form()
  2. 6 advpoll_convert.module \advpoll_convert_form()
  3. 6.2 advpoll_convert.module \advpoll_convert_form()
1 string reference to 'advpoll_convert_form'
advpoll_convert_view in ./advpoll_convert.module

File

./advpoll_convert.module, line 40

Code

function advpoll_convert_form() {
  $form = array();
  $form['note'] = array(
    '#value' => '<p>' . t('This will convert all standard Drupal polls into Advanced Poll polls.') . '</p><div class="messages warning">' . t('Warning: this action cannot be reversed. Please backup your database before converting.') . '</div>',
  );
  $form['convert'] = array(
    '#type' => 'submit',
    '#value' => t('Convert'),
  );
  return $form;
}