mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
MDL-16360 - added support for mime-style subformat detection for portfolio supported formats
works well with flickr plugin (tested by uploading an image as a forum attachment and being offered flickr plugin but not for normal attachments)
This commit is contained in:
parent
0b46f19e89
commit
ea0de12f10
10 changed files with 135 additions and 16 deletions
|
@ -6,6 +6,10 @@ class portfolio_plugin_flickr extends portfolio_plugin_push_base {
|
|||
|
||||
private $flickr;
|
||||
|
||||
public static function supported_formats() {
|
||||
return array(PORTFOLIO_FORMAT_IMAGE);
|
||||
}
|
||||
|
||||
public static function get_name() {
|
||||
return get_string('pluginname', 'portfolio_flickr');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue