Hiding the gradebook tab option in Portal administration

skala
Julio Montoya 16 years ago
parent cfc5294631
commit 1853c92c77
  1. 5
      main/admin/settings.php

@ -18,7 +18,7 @@ if ($_GET['category']=='Templates') {
}
// resetting the course id
$cidReset=true;
// including some necessary dokeos files
// including some necessary chamilo files
require_once '../inc/global.inc.php';
require_once api_get_path(LIBRARY_PATH).'sortabletable.class.php';
require_once api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php';
@ -216,6 +216,9 @@ if (!empty($_GET['category']) && !in_array($_GET['category'], array('Plugins', '
if (api_get_setting('allow_social_tool') == 'true') {
if ($rowkeys['variable'] == 'show_tabs' && $rowkeys['subkey'] == 'my_profile') {continue;}
}
//hiding the gradebook option
if ($rowkeys['variable'] == 'show_tabs' && $rowkeys['subkey'] == 'my_gradebook') {continue;}
$element = & $form->createElement('checkbox', $rowkeys['subkey'], '', get_lang($rowkeys['subkeytext']));
if ($row['access_url_changeable']==1) {

Loading…
Cancel
Save