You are here

function CourseObjectPoll::take in Course 6

Take or view the results of a poll. Wrapper for poll_view().

Overrides CourseObject::take

File

modules/course_poll/course_poll.classes.inc, line 15

Class

CourseObjectPoll
Parent class for poll tracking.

Code

function take() {
  poll_view($this->node);
  return drupal_render($this->node->content['body']);
}