Proyectos de Subversion Moodle

Rev

Rev 622 | Rev 954 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 622 Rev 925
Línea 14... Línea 14...
14
 
14
 
15
    return [
15
    return [
16
      'all' => false,
16
      'all' => false,
17
      'my' => false,
17
      'my' => false,
18
      'admin' => false,
18
      'admin' => false,
-
 
19
      'course' => true,
19
      'course' => false,
20
      'incourse' => true,
20
      'course-view' => true,
21
      'course-view' => true,
21
      'enrol' => true,
22
      'enrol' => true,
22
    ];
23
    ];
Línea 23... Línea 24...
23
  }
24
  }
24
 
25
 
25
  function specialization()
26
  function specialization()
26
  {
27
  {
27
    global $CFG, $DB;
28
    global $CFG, $DB;
28
    if (empty($this->config)) {
29
    if (empty($this->config)) {
29
      $this->instance->defaultregion = 'bellow-content';
30
      $this->instance->defaultregion = 'side-pre';
Línea 30... Línea 31...
30
      $this->instance->region = 'bellow-content';
31
      $this->instance->region = 'side-pre';
31
      $DB->update_record('block_instances', $this->instance);
32
      $DB->update_record('block_instances', $this->instance);
32
 
33