Commit 652f930f authored by Nigel McNie's avatar Nigel McNie
Browse files

Display an icon for files listed in the embedded media block.

parent 2c7dd364
......@@ -130,6 +130,11 @@ class PluginBlocktypeInternalmedia extends PluginBlocktype {
);
}
public static function artefactchooser_get_element_data($artefact) {
$artefact->icon = call_static_method(generate_artefact_class_name($artefact->artefacttype), 'get_icon', array('id' => $artefact->id));
return $artefact;
}
public static function save_config_options($values) {
$enabledtypes = array();
foreach ($values as $type => $enabled) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment