Permalink
Browse files

Smart add entry tab

  • Loading branch information...
ikawhero
ikawhero committed Mar 29, 2006
1 parent 5b3c8a0 commit d095e22f4a98b3a2d855b52470d45521cd8a4b7d
Showing with 2 additions and 1 deletion.
  1. +2 −1 mod/data/tabs.php
View
@@ -39,7 +39,8 @@
$row[] = new tabobject('single', $CFG->wwwroot.'/mod/data/view.php?d='.$data->id.'&mode=single', get_string('detail','data'), '', true);
}
if (isteacher($course->id) or ($data->participants == DATA_STUDENTS_ONLY) or ($data->participants == DATA_TEACHERS_AND_STUDENTS)){
$row[] = new tabobject('add', $CFG->wwwroot.'/mod/data/add.php?d='.$data->id, get_string('add','data'), '', true);
$addstring = ($rid) ? get_string('editentry', 'data') : get_string('add', 'data');
$row[] = new tabobject('add', $CFG->wwwroot.'/mod/data/add.php?d='.$data->id, $addstring, '', true);
}
if (isteacher($course->id)) {
if ($currenttab == 'list') {

0 comments on commit d095e22

Please sign in to comment.