Hi,
I am creating a new course format in 2.6.1.
I have found that I need to override the function course_format_options() in order to add options specific to this format. At the moment I'm trying to upload an icon per course.
$courseformatoptionsedit = array(
'icon' => array(
'label' => new lang_string('icon', 'format_skill'),
'element_type' => 'filemanager',
'element_attributes' => array(
'filemanager',
'icon',
get_string('skillicon', 'format_skill'),
null,
$options,
),
'help' => 'icon',
'help_component' => 'format_skill',
)
);
But, I'm not sure where to hook into the file_get_submitted_draft_itemid() and file_prepare_draft_area() and then pass the $draftid into the form.
Similar problem with the postprocessing.
Is this even possible without a core code hack?
Many thanks,
Michael