function CourseObjectNode::getOptionsSummary in Course 7.2
Same name and namespace in other branches
- 7 includes/CourseObjectNode.inc \CourseObjectNode::getOptionsSummary()
Get core options summary.
Return value
array An associative array of summary keys and values.
Overrides CourseObject::getOptionsSummary
2 calls to CourseObjectNode::getOptionsSummary()
- CourseObjectQuiz::getOptionsSummary in modules/
course_quiz/ course_quiz.classes.inc - Get core options summary.
- CourseObjectWebform::getOptionsSummary in modules/
course_webform/ course_webform.classes.inc - Get core options summary.
2 methods override CourseObjectNode::getOptionsSummary()
- CourseObjectQuiz::getOptionsSummary in modules/
course_quiz/ course_quiz.classes.inc - Get core options summary.
- CourseObjectWebform::getOptionsSummary in modules/
course_webform/ course_webform.classes.inc - Get core options summary.
File
- includes/
CourseObjectNode.inc, line 368
Class
- CourseObjectNode
- A course object that uses a node as a base.
Code
function getOptionsSummary() {
$summary = parent::getOptionsSummary();
if ($this
->getOption('instance') == $this
->getCourseNid()) {
// Don't show the edit instance link when the instance is
// self-referencing.
unset($summary['instance']);
}
return $summary;
}