Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 172... Línea 172...
172
 
172
 
173
        // Get the content type html.
173
        // Get the content type html.
174
        $contenthtml = $this->contenttype->get_view_content($this->content);
174
        $contenthtml = $this->contenttype->get_view_content($this->content);
Línea -... Línea 175...
-
 
175
        $data->contenthtml = $contenthtml;
-
 
176
 
-
 
177
        $handler = \core_contentbank\customfield\content_handler::create();
-
 
178
        $customfields = $handler->get_instance_data($this->content->get_id());
175
        $data->contenthtml = $contenthtml;
179
        $data->customfieldshtml = $handler->display_custom_fields_data($customfields);
176
 
180
 
177
        // Check if the user can edit this content type.
181
        // Check if the user can edit this content type.
178
        if ($this->contenttype->can_edit($this->content)) {
182
        if ($this->contenttype->can_edit($this->content)) {
179
            $data->usercanedit = true;
183
            $data->usercanedit = true;