mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-16587 bit of a large refactor of the portfolio formats. still more to come.
This commit is contained in:
parent
a813ddc975
commit
6be1dcae99
16 changed files with 295 additions and 141 deletions
|
@ -109,7 +109,17 @@ abstract class portfolio_plugin_base {
|
|||
* @return array list of formats
|
||||
*/
|
||||
public static function supported_formats() {
|
||||
return array(PORTFOLIO_FORMAT_FILE);
|
||||
return array(PORTFOLIO_FORMAT_FILE, PORTFOLIO_FORMAT_RICHHTML);
|
||||
}
|
||||
|
||||
/**
|
||||
* override this if you are supporting the 'file' type (or a subformat)
|
||||
* but have restrictions on mimetypes (see googledocs plugin for more info)
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public static function file_mime_check($mimetype) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue