public function CourseObject::renderOptionsSummary in Course 6
Same name and namespace in other branches
- 7.2 includes/CourseObject.inc \CourseObject::renderOptionsSummary()
- 7 includes/CourseObject.inc \CourseObject::renderOptionsSummary()
Get all course object implementations of getOptionsSummary().
1 call to CourseObject::renderOptionsSummary()
- CourseObject::optionsSubmit in includes/
course_object.core.inc - Save object configs to cache.
File
- includes/
course_object.core.inc, line 489
Class
- CourseObject
- Parent abstract base class of all course objects.
Code
public function renderOptionsSummary() {
ctools_include('plugins');
$summary = $this
->getOptionsSummary();
// Get summaries from plugins, and merge into the summary.
foreach (ctools_get_plugins('course', 'access') as $key => $plugin) {
// @todo how do we get these?
}
// @todo make this a themeable function.
//return theme('course_object_summary');
$rendered_summary = '';
if (!empty($summary)) {
$rendered_summary = $html = '<div class="description">' . theme('item_list', $summary) . '</div>';
}
return $rendered_summary;
}