Browse Source

Menu export is not a sub menu now

MOODLE_20_STABLE
bdaloukas 8 years ago
parent
commit
cd542ba6c4
  1. 8
      lib.php

8
lib.php

@ -827,18 +827,14 @@ function game_extend_settings_navigation($settings, $gamenode) {
null, null, new pix_icon('i/item', ''));
break;
case 'hangman':
$url = new moodle_url('', null);
$exportnode = $gamenode->add( get_string('export', 'game'), $url, navigation_node::TYPE_SETTING,
null, null, new pix_icon('i/report', ''));
$url = new moodle_url('/mod/game/export.php', array( 'id' => $PAGE->cm->id,
'courseid' => $courseid, 'target' => 'html'));
$exportnode->add( get_string('export_to_html', 'game'), $url, navigation_node::TYPE_SETTING,
$gamenode->add( get_string('export_to_html', 'game'), $url, navigation_node::TYPE_SETTING,
null, null, new pix_icon('i/item', ''));
$url = new moodle_url('/mod/game/export.php', array( 'id' => $PAGE->cm->id,
'courseid' => $courseid, 'target' => 'javame'));
$exportnode->add( get_string('export_to_javame', 'game'), $url, navigation_node::TYPE_SETTING,
$gamenode->add( get_string('export_to_javame', 'game'), $url, navigation_node::TYPE_SETTING,
null, null, new pix_icon('i/item', ''));
break;
case 'snakes':

Loading…
Cancel
Save