public function CourseObject::renderOptionsSummary in Course 7
Same name and namespace in other branches
- 6 includes/course_object.core.inc \CourseObject::renderOptionsSummary()
- 7.2 includes/CourseObject.inc \CourseObject::renderOptionsSummary()
Get all course object implementations of getOptionsSummary().
File
- includes/
CourseObject.inc, line 516
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', 'course_object_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', array(
'title' => '',
'items' => $summary,
)) . '</div>';
}
return $rendered_summary;
}