Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 78... Línea 78...
78
    if (!$manager->has_fields()) {
78
    if (!$manager->has_fields()) {
79
        redirect($CFG->wwwroot.'/mod/data/field.php?d='.$data->id);  // Redirect to field entry.
79
        redirect($CFG->wwwroot.'/mod/data/field.php?d='.$data->id);  // Redirect to field entry.
80
    }
80
    }
81
}
81
}
Línea 82... Línea -...
82
 
-
 
83
if ($rid) {
-
 
84
    // When editing an existing record, we require the session key.
-
 
85
    require_sesskey();
-
 
86
}
-
 
87
 
82
 
88
// Get Group information for permission testing and record creation.
83
// Get Group information for permission testing and record creation.
89
$currentgroup = groups_get_activity_group($cm);
84
$currentgroup = groups_get_activity_group($cm);
Línea 90... Línea 85...
90
$groupmode = groups_get_activity_groupmode($cm);
85
$groupmode = groups_get_activity_groupmode($cm);
Línea 119... Línea 114...
119
 
114
 
120
if ($rid) {
115
if ($rid) {
121
    $PAGE->navbar->add(get_string('editentry', 'data'));
116
    $PAGE->navbar->add(get_string('editentry', 'data'));
Línea 122... Línea 117...
122
}
117
}
123
 
118
 
124
$PAGE->add_body_class('mediumwidth');
119
$PAGE->add_body_class('limitedwidth');
125
if ($rid) {
120
if ($rid) {
126
    $pagename = get_string('editentry', 'data');
121
    $pagename = get_string('editentry', 'data');
127
} else {
122
} else {