mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
***NOTE NOTE NOTE **********************************************************
THIS IS A BIG CHANGE! I've renamed the "reading" module to "resource". This meant changing quite a few references throughout Moodle. The automatic upgrade process should work OK (it worked OK on my development server) and there shouldn't be any problems. BUT PLEASE PROCEED WITH CAUTION AND KEEP BACKUPS OF EVERYTHING UNTIL I HAVE A FEW MORE TESTS! If you upgrade please let me know. One thing that will break are any hard-coded links within forum messages. What I will be doing to fix this on my apache server is to add this to httpd.conf: Redirect /mod/reading/ http://moodle.com/mod/resource/ Sorry about any inconvenience, but it's better this is done sooner than later.
This commit is contained in:
parent
e1ac42728d
commit
2a439ba7f6
21 changed files with 680 additions and 26 deletions
46
mod/resource/mod.html
Normal file
46
mod/resource/mod.html
Normal file
|
@ -0,0 +1,46 @@
|
|||
<form name="form" method="post" action="<?=$CFG->wwwroot?>/mod/resource/details.php">
|
||||
<table cellpadding=5>
|
||||
<tr valign=top>
|
||||
<td align=right><P><B><? print_string("name") ?>:</B></P></TD>
|
||||
<td>
|
||||
<input type="text" name="name" size=50 value="<? p($form->name) ?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign=top>
|
||||
<td align=right><P><B><? print_string("resourcetype", "resource") ?>:</B></P></TD>
|
||||
<td>
|
||||
<?
|
||||
require("$CFG->dirroot/mod/resource/lib.php");
|
||||
asort($RESOURCE_TYPE);
|
||||
if (!$form->type) {
|
||||
$form->type = 4;
|
||||
}
|
||||
choose_from_menu($RESOURCE_TYPE, "type", $form->type, "");
|
||||
helpbutton("resourcetype", get_string("resourcetype", "resource"), "resource");
|
||||
?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign=top>
|
||||
<td align=right><P><B><? print_string("summary") ?>:</B></P></TD>
|
||||
<td>
|
||||
<textarea name="summary" rows=5 cols=50 wrap="virtual"><? p($form->summary) ?></textarea>
|
||||
<? helpbutton("summary", get_string("summary"), "resource"); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<CENTER>
|
||||
<input type="hidden" name=reference value="<? p($form->reference) ?>">
|
||||
<input type="hidden" name=alltext value="<? p($form->alltext) ?>">
|
||||
|
||||
<input type="hidden" name=course value="<? p($form->course) ?>">
|
||||
<input type="hidden" name=coursemodule value="<? p($form->coursemodule) ?>">
|
||||
<input type="hidden" name=section value="<? p($form->section) ?>">
|
||||
<input type="hidden" name=module value="<? p($form->module) ?>">
|
||||
<input type="hidden" name=modulename value="<? p($form->modulename) ?>">
|
||||
<input type="hidden" name=instance value="<? p($form->instance) ?>">
|
||||
<input type="hidden" name=mode value="<? p($form->mode) ?>">
|
||||
<input type="hidden" name=destination value="<?=$ME ?>">
|
||||
<input type="submit" value="<? print_string("continue") ?>">
|
||||
</CENTER>
|
||||
</FORM>
|
Loading…
Add table
Add a link
Reference in a new issue