* @version 1.0 * @since 03 Nov 2013 06:54:52 */ function checkQuestion() { if (false === ($q_parsed = Question::parseOptions(getFormData('question_text')))) { $this->addError('question_text', sprintf(_("%s contains invalid option formatting. Please see one of the examples below. Note: if you're asking a question with no options (free answer), end the question with a question mark. If you want to write a statement and automatically continue to the next question (blocking any replies), finish the question with a period."), _("Question text")), MSG_ERR, __FILE__, __LINE__); } return $q_parsed; } }