You are here

function CourseObjectPoll::getNodeTypes in Course 6

Same name and namespace in other branches
  1. 7.2 modules/course_poll/course_poll.classes.inc \CourseObjectPoll::getNodeTypes()
  2. 7 modules/course_poll/course_poll.classes.inc \CourseObjectPoll::getNodeTypes()

Return a list of valid node types.

Return value

array An array keyed by machine name of a node type. return array( 'my_event' => 'My event content type', );

Overrides CourseObjectNode::getNodeTypes

File

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

Class

CourseObjectPoll
Parent class for poll tracking.

Code

function getNodeTypes() {
  return array(
    'poll',
  );
}