114 Commits

Author SHA1 Message Date
sam_marshall
ae628043a0 MDL-7401 Course format database/backup/lang/stylesheet/capability support 2006-12-11 15:47:23 +00:00
jamiesensei
0b82f5b913 fix for error in logic about where to redirect to after a cancel or after activity mod is successfully added or update. 2006-12-05 13:23:18 +00:00
jamiesensei
19110c573d added new 'cancel' element type and introduced new is_cancelled() MoodleQuickForm method.
also used new cancel button in all mod_forms as well as a 'Revert' button and reworked logic about where to go on cancel or after submission for modedit.php
2006-12-04 09:36:30 +00:00
jamiesensei
264867fdeb add code to redirect to modedit.php from course/mod.php for activities adding / updating using new formslib
migrated chat/mod.html to formslib definition of form is in chat/mod_form.php
2006-11-09 18:25:58 +00:00
thepurpleblob
07705e2fa6 put the cursor in the edit box rather than doing nothing for label 2006-10-18 13:03:50 +00:00
toyomoyo
c5846d4627 merged fixed wrong capaiblity checks 2006-10-11 03:48:09 +00:00
skodak
7208c579fd fixed missing required_login($courseid) that needs to be done to set up proper global $COURSE; MDL-6697 course/mod.php does not show the right navigation 2006-09-30 20:46:31 +00:00
skodak
6859360cd4 coverted /admin/ to proper /$CFG->admin/ in paths 2006-09-26 21:10:14 +00:00
skodak
6124048972 major whitespace cleanup - fixed tabs 2006-09-20 20:31:09 +00:00
moodler
0468976c9a SWEEPING CLEANUP
The API was changed slightly so that has_capability now takes the
whole $context object (we almost always have it anyway)

The $kill thing was removed.   If you want to assert a capability
then use:

    require_capability('capname', $context);

with optional variables to modify the error message

Misc bugs here and there also removed and code tidied
2006-08-14 05:55:40 +00:00
moodler
bbbf2d4015 ROLES AND PERMISSIONS - FIRST CHECK-IN
=======================================

WARNING:  DEV IS CURRENTLY VERY UNSTABLE.

This is a mega-checkin of the new Roles system.   A lot of changes have
been made in core and modules.

Currently there are a lot of rough edges and known problems.  We are
working hard on these .. .the reason for getting this into HEAD at this
stage is enable us to move faster (our branch was diverging from HEAD
too much).

Please keep an eye on http://docs.moodle.org/en/Roles for current status
and information for developers on how to use the new Roles system.
2006-08-08 05:13:06 +00:00
skodak
36259d1bd3 Bug #6135 - Reduce unnecessary use of strtolower to make non-English languages look better; merged from MOODLE_16_STABLE 2006-07-30 21:47:43 +00:00
tjhunt
1dd9972889 Check for errors before doing other processing. (Compare this with the add case.) 2006-05-31 10:34:05 +00:00
stronk7
0ec7502bad Avoid [[namesite]] to appear when ADDING site activities.
Merged from MOODLE_16_STABLE

I sent this on May 9th! :-(
2006-05-15 17:54:29 +00:00
stronk7
85e20335a6 Avoid [[namesite]] to appear when editing site activities. Bug 5370.
(http://moodle.org/bugs/bug.php?op=show&bugid=5370)
2006-04-29 15:13:31 +00:00
dwoolhead
38943071f0 With appropriate error reporting, adding a label to a section of a course results in an E_NOTICE message temporarily appearing on the screen, because the module object name property is not set. Prevent message being displayed by checking that property is set before testing its value 2006-04-25 11:48:39 +00:00
skodak
0cdae0dcaa general cleanup of xxx_parameter() functions + fixed several register globals problems 2006-04-11 21:41:21 +00:00
patrickslee
c4dd557978 Proper fix for the module toolbar actions 2006-03-23 23:36:20 +00:00
patrickslee
9932144e89 Fixed group switch icon cannot set a module to use no groups 2006-03-23 22:56:11 +00:00
vyshane
4379c8e9bb W3C validation and misc code cleanup. 2006-03-16 08:49:20 +00:00
thepurpleblob
bc5e4b1cbe Whoops... missed one. 2006-03-10 11:08:50 +00:00
thepurpleblob
63d2ed1aa3 Getting rid of those isset_param() calls. 2006-03-10 11:07:10 +00:00
vyshane
bfb7fe86bb When updating a resource, $CFG->pagepath should be /mod/resource/type instead
of /mod/resource/mod.
2006-03-08 03:23:22 +00:00
skodak
e1427cdec5 fixed incorrect use of required_param() 2006-03-07 23:30:27 +00:00
skodak
1b1d34225b incorrect usage of clean_filename() replaced with clean_param($text, PARAM_SAFEDIR) 2006-03-04 12:37:29 +00:00
vyshane
d2555cedfa Updated $CFG->pagepath generation for add and delete cases. 2006-03-03 03:33:11 +00:00
moodler
1933c40771 Setting new variable $CFG->pagepath to give hints later on to the
function page_id_and_class and also page_doc_link so that they can set
things more correctly for each different module being used.
2006-03-01 02:34:34 +00:00
gustav_delius
56b5d16a4d Fixed alignment of module icon so it looks correct also in Firefox. 2006-01-30 20:45:54 +00:00
defacer
4baeb9b028 Removing the <a name="2"></a> anchors from course sections (used with links,
e.g. /course/view.php?id=2#4). We already have elements with id="section-XXX",
so I made all links I could possibly grep for point to those.

All this for XHTML (won't Tidy ever be content?)
2005-11-23 23:14:25 +00:00
skodak
bdc04ca9e1 fixed indent - SC#158; merged from MOODLE_15_STABLE 2005-10-09 19:41:34 +00:00
skodak
1adf55c5cd better input validation - SC#165; merged from MOODLE_15_STABLE 2005-10-09 07:12:58 +00:00
moodler
50fcf8cf0d Added ID to help CSS targeting of activity module editing forms for each module 2005-09-09 16:23:11 +00:00
mjollnir_
0705ff843b Course request feature. Allows normal users to 'request' courses they would like created,
and admins can approve or reject pending courses.

Also, contains the ability to restrict activity modules on a per course basic. Strict config options:
  enable restricting modules at ALL (for all courses, no courses, requested courses), what to do by default for newly created courses
  as well as what modules to enable for above category by default.

This feature was created for the aim of building a community side to moodle - for institutes that have strict courses and enrolments, allowing normal users to request interest courses is a good feature,
but some modules may be redundant (assignment, lesson, quiz etc)

  Please test!
2005-08-16 06:15:49 +00:00
thepurpleblob
46c0bb9b64 Removed optional_variable(), require_variable and all $_GET, $_POST
Replaced with more secure alternatives.
2005-06-10 11:06:19 +00:00
stronk7
e2448b532e Recently improved navbar now supports filterall. 2005-04-24 12:37:37 +00:00
gustav_delius
52d55cfc51 improved navigation bar for module editing form 2005-04-19 14:58:16 +00:00
moodler
b14222f906 MOved deletion of course module 2005-03-31 08:32:24 +00:00
moodler
24e1eae4a2 Implemented bug 2676 - jump back to working section after clicking
on an activity modification link in course view...
2005-03-05 05:19:26 +00:00
moodler
9df665e7bf When updating we don't always want to change visibility and groupmode bug 2561 2005-02-16 03:11:52 +00:00
gustav_delius
a10464d6cd Moved visibility code to make sure that activities added in hidden sections are hidden. 2005-02-13 09:35:40 +00:00
moodler
99349afc9a Fixed logic for new course modules 2005-02-13 06:24:21 +00:00
gustav_delius
48e535bc35 Activities can now be hidden/shown from the activity editing page. Also for modules that know about groups the groupmode can be set from there. See bug 2533. This required adding to the mod.html files calls to new functions print_visible_setting() and print_groupmode_setting() which are combined in print_standard_coursemodule_settings().
The visibility of coursemodules is now always set through the function set_coursemodule_visible() in order to make sure that the associated events get updated in the calendar appropriately.

If moving a coursemodule to a hidden section then the module is set to hidden as well and its events are hidden in the calendar.

If deleting a coursemodule its events are deleted from the calendar.

The function choose_from_menu() has an extra optional argument $disabled which, when set to true, will disable the menu.

For the sake of consistency the function set_groupmode_for_module has been renamed to set_coursemodule_groupmode and the functions show_course_module() and hide_course_module() have been combined to set_coursemodule_visible().
2005-02-12 21:41:22 +00:00
defacer
ff0c7de0b0 Removed dead code. 2005-02-12 12:49:46 +00:00
stronk7
fff86611a2 Small typo (bug 2512)
(http://moodle.org/bugs/bug.php?op=show&bugid=2512)

Merged from MOODLE_14_STABLE
2005-02-08 01:07:45 +00:00
moodler
810393c804 Removed THEME from many course files 2005-01-25 14:03:43 +00:00
stronk7
1082105205 Modify sesskey behaviour. SC#73 2005-01-22 18:53:44 +00:00
gustav_delius
34283aa87d The teacher now can choose whether to see the advanced quiz
options or not. This is handled as in the resource module. The
"Show advanced options" button is only shown if the admin has
chosen to declare some of the options as advanced.

There are now 4 review options as suggested by Martin in
http://moodle.org/mod/forum/discuss.php?d=16709

Provides separate buttons "Update this quiz" and "Edit questions",
see http://moodle.org/mod/forum/discuss.php?d=16708. To make this
possible edit.php can now be called with a quiz id and it saves
its data itself rather than relying on mod.php.

mod.html now has a "Save changes" and a "Save changes and edit questions" button.

"Attempt quiz now" button gets a different language string for
re-attempts. This is currently set to "Re-attempt quiz".

After viewing the feedback for an attempt the "Continue" button
leads back to the course homepage, as requested in bugs 1224 and
1976. If there is no feedback the user is brought straight to quiz/view.php.
2005-01-02 07:15:19 +00:00
stronk7
8b92f5bb7d course/mod.php is using sesskey.
Merged from MOODLE_14_STABLE
2004-10-09 17:23:28 +00:00
moodler
ac87e23424 Merged from STABLE 2004-09-28 15:58:13 +00:00
gustav_delius
839f2456bb XHTML compliance
- fixed (hopefully) all <img> tags
- global replace on <br> to <br />
- &amp; in URLs
- got the forum module XHTML compliant
Julian Sedding
2004-09-16 17:13:57 +00:00