Allow quiz_results in quiz pages and allow multiple instances too
[moodle.git] / blocks / html / block_html.php
CommitLineData
86db09ef 1<?php //$Id$
2
3class block_html extends block_base {
4
5 function init() {
6 $this->title = get_string('html', 'block_html');
7 $this->content_type = BLOCK_TYPE_TEXT;
8 $this->version = 2004123000;
9 }
10
11 function specialization() {
63689c58 12 // We allow empty titles
13 $this->title = isset($this->config->title) ? $this->config->title : '';
86db09ef 14 }
15
16 function instance_allow_multiple() {
17 return true;
18 }
19
20 function get_content() {
21 global $CFG;
22 require_once($CFG->dirroot .'/lib/weblib.php');
23 if ($this->content !== NULL) {
24 return $this->content;
25 }
26
27 $this->content = new stdClass;
63689c58 28 $this->content->text = isset($this->config->text) ? $this->config->text : '';
86db09ef 29 $this->content->footer = '';
30
31 return $this->content;
32 }
33}
34?>