Function Module_cms_polls->get_form_fields

Definitions

cms/pages/modules/cms_polls.php

  • Get Tempcode for a poll adding/editing form.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: array

Parameters

Name Type Default Set Range Description
$id ?AUTO_LINK Null N/A N/A The poll ID (null: new)
$question SHORT_TEXT Blank (empty string) N/A N/A The question
$a1 SHORT_TEXT Blank (empty string) N/A N/A The first answer
$a2 SHORT_TEXT Blank (empty string) N/A N/A The second answer
$a3 SHORT_TEXT Blank (empty string) N/A N/A The third answer
$a4 SHORT_TEXT Blank (empty string) N/A N/A The fourth answer
$a5 SHORT_TEXT Blank (empty string) N/A N/A The fifth answer
$a6 SHORT_TEXT Blank (empty string) N/A N/A The sixth answer
$a7 SHORT_TEXT Blank (empty string) N/A N/A The seventh answer
$a8 SHORT_TEXT Blank (empty string) N/A N/A The eighth answer
$a9 SHORT_TEXT Blank (empty string) N/A N/A The ninth answer
$a10 SHORT_TEXT Blank (empty string) N/A N/A The tenth answer
$current boolean True N/A N/A Whether the poll is/will-be currently active
$allow_rating ?BINARY 1 N/A N/A Whether rating is allowed (null: decide statistically, based on existing choices)
$allow_comments ?SHORT_INTEGER 1 N/A N/A Whether comments are allowed (0=no, 1=yes, 2=review style) (null: decide statistically, based on existing choices)
$allow_trackbacks ?BINARY 1 N/A N/A Whether trackbacks are allowed (null: decide statistically, based on existing choices)
$notes LONG_TEXT Blank (empty string) N/A N/A Notes for the poll

Return

  • A pair: The input fields, Hidden fields
  • Type: array
  • Set: N/A
  • Range: N/A