Hola, he creado un nuevo modulo para moodle, que contiene un enlace a una pagina con un formulario, ahora bien, al abrir la nueva ventana con el formulario, no se me propaga el theme elegido, ¿sabe alguien porque puede ser?
Adjunto el código del bloque -->
class block_conec extends block_list
{
function init()
{
$this->title = 'Configurar clase virtual';;
$this->version = 2008080802;
}
function get_content()
{
global $CFG, $USER, $course;
if($this->content !== NULL)
{
return $this->content;
}
$this->content = new stdClass;
$this->content->items = array();
$this->content->icons = '';
$this->content->footer = '';
$this->content->items[] = '<a style="margin-top:4px;margin-bottom:-10px;text-align:center;" href="'.$CFG->wwwroot.'/blocks/conec/configurar.php" target="_blank">Configurar</a>';
return $this->content;
}
function applicable_formats()
{
return array('course-view' => true);
}
}