Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 61... Línea 61...
61
        }
61
        }
Línea 62... Línea 62...
62
 
62
 
63
        $mform->addElement('select', 'roleid', get_string('selectrole', 'tool_cohortroles'), $options);
63
        $mform->addElement('select', 'roleid', get_string('selectrole', 'tool_cohortroles'), $options);
Línea 64... Línea -...
64
        $mform->addRule('roleid', null, 'required');
-
 
65
 
64
        $mform->addRule('roleid', null, 'required');
66
        $context = context_system::instance();
65
 
67
        $options = array(
-
 
68
            'multiple' => true,
66
        $options = array(
69
            'data-contextid' => $context->id,
67
            'multiple' => true,
70
            'data-includes' => 'all'
68
            'includes' => 'all',
71
        );
69
        );
72
        $mform->addElement('cohort', 'cohortids', get_string('selectcohorts', 'tool_cohortroles'), $options);
70
        $mform->addElement('cohort', 'cohortids', get_string('selectcohorts', 'tool_cohortroles'), $options);
73
        $mform->addRule('cohortids', null, 'required');
71
        $mform->addRule('cohortids', null, 'required');