Marina Glancy
4ede27b253
MDL-35339 deprecate get_course_section() replace with course_create_sections_if_missing()
...
By passing course object instead of course id we ensure proper cache reset"
2012-10-15 14:08:14 +08:00
Marina Glancy
722e6ba947
MDL-35339 Deprecate add_mod_to_section(), create new function course_add_cm_to_section()
...
Function add_mod_to_section() has very confusing arguments when object looks like record from
table course_modules but field ->section refers to relative section number (course_sections.section).
In table course_modules the field section refers to course_sections.id.
Also add_mod_to_section() does not update table course_modules and does not call rebuild_course_cache()
which developer can forget to do afterwards.
- Added function course_add_cm_to_section()
- In the core code add_mod_to_section() is replaced with course_add_cm_to_section()
- Function add_mod_to_section() is deprecated
2012-10-15 14:08:13 +08:00
Marina Glancy
923451c59f
MDL-35276 fix redirect to course/section pages
2012-09-26 10:51:28 +08:00
Ankit Agarwal
9a5e297b4c
MDL-34470 course: Replace all instances of get_context_instance() with context_xxx::instance() in course/
2012-07-24 16:19:01 +08:00
Frederic Massart
a41b1d96b6
MDL-33775 Course: fix redirect to course/section in paged mode
2012-06-18 15:10:33 +08:00
Dan Poltawski
5218b9bb7d
MDL-32508 course: Introduce course_get_url()
2012-05-04 10:52:58 +08:00
Tim Hunt
9665ecd275
MDL-19125 module restrictions: use a capability
...
1. This used to use a complex legacy system which was buggy.
2. It now relies on a new mod/...:addinstance capability for each module.
3. All the legacy code has been stripped out.
4. Old restriction data is upgraded by creating the necessary permission
overrides. Similarly, when old backups are restored, the old settings
are converted to be overrides.
5. The required addinstance capabilities will be added as a separate
commit.
6. There is a developer debug warning about modules that are missing the
addinstance capability, unless they are MOD_ARCHETYPE_SYSTEM mods.
2012-03-15 17:11:27 +00:00
Andrew Davis
c85cf7df5c
MDL-29097 course: refactored to avoid having two seperate calls to events_trigger()
2012-01-31 09:00:53 +07:00
Petr Skoda
af18993548
MDL-30787 fix use of module and section edit capabilities
2011-12-18 13:54:38 +01:00
David Mudrak
1dea75b8d1
MDL-29108 Do not display grading method selector for non-privileged users
...
The patch checks the required capability before it displays the grading
method selectors in the modform.
2011-11-11 13:58:45 +01:00
David Mudrak
bb50c37651
MDL-30162 The grading method can be selected when creating new instance of the activity module
2011-11-08 01:54:36 +01:00
David Mudrak
01609c9ad9
Merge remote branch 'origin/master' into rubric
...
Conflicts:
lib/db/upgrade.php
version.php
2011-10-24 22:13:01 +02:00
David Mudrak
03d448e5ff
Activity module's settings form redirects to the management screen when advanced grading method was selected to use
2011-10-16 19:40:47 +02:00
sam marshall
6282381d05
MDL-27242 Conditional availability dates should support time as well as day
...
Change also adds minor feature to date-time selector so you can specify the time it uses as default when the value is 0 (disabled).
Credit: This feature was developed collaboratively by Charles Fulton, Neill Magill, and me.
2011-10-13 10:23:23 +01:00
David Mudrak
6440286719
MDL-29479 Active grading method can be set for the given area
2011-10-03 22:26:52 +02:00
David Mudrak
8a4acb3aca
MDL-29479 Cosmetic rename of some methods in grading manager API
2011-10-03 22:26:52 +02:00
David Mudrak
b11f9da65e
MDL-29479 New feature FEATURE_ADVANCED_GRADING
...
Plugins will use this feature to claim their support for the new
advanced grading methods machinery.
2011-09-29 00:09:59 +02:00
Petr Skoda
aff24313be
MDL-29401 introduce new frankenstyle PARAM types
...
New PARAM_COMPONENT, PARAM_AREA and PARAM_PLUGIN + fixing of hopefully all current incorrect parameter types. This should help with diagnosing of incorrectly named 3rd party plugins too.
2011-09-25 09:59:55 +02:00
sam marshall
8c40662e22
MDL-27001 'Show description' feature part 1: infrastructure that allows modules to support feature
...
The 'Show description' feature is about optionally including module description on the course page. This change include the necessary infrastructure - new database field, new FEATURE constant, changes to forms to display it, new language strings for it, backup and restore, and old course conversion. (I found the places to change by searching for an existing field in course_modules).
Documentation for the field is included in install.xml and in modinfolib.
2011-09-06 11:03:00 +01:00
Sam Hemelryk
9fed82de9c
Merge branch 'MDL-26785' of git://github.com/stronk7/moodle
2011-03-14 11:22:05 +08:00
Eloy Lafuente (stronk7)
e140197481
MDL-26785 module edit - icon in heading missing sometimes
2011-03-12 01:39:58 +01:00
Tim Hunt
b053dcab0f
MDL-26730 when going back from modedit.php to the course, go to the right section.
2011-03-09 15:51:15 +00:00
Sergey Vidusov
ebb32067bf
MDL-25478 - stop fatal errors adding blocks on the module edit page
...
Signed-off-by: Dan Poltawski <dan.poltawski@luns.net.uk>
2011-01-03 19:09:56 +00:00
David Mudrak
ff7670e79b
MDL-25582 Fixed inconsistence in FEATURE_MOD_INTRO evaluation
2010-12-06 16:07:31 +00:00
Dongsheng Cai
7be06fa535
"MDL-25529 revert changes, it broke module instance creating page"
2010-12-05 18:01:33 +00:00
jerome mouneyrac
4a67d7c84d
course MDL-25529 $introeditor not declared in some cases (=> it was displaying php notice when adding the official newmodule template)
2010-12-05 08:24:33 +00:00
Sam Marshall
91d0bb0a1f
Activity completion MDL-24746 If you turn on autocompletion for an activity after users have already done things that should complete it, it didn't mark them complete
2010-11-08 11:51:19 +00:00
Petr Skoda
fbaea88faa
MDL-24321 switching to stdClass in /c*/
2010-09-21 08:13:11 +00:00
Dan Marsden
bce59524ce
Plagiarism API MDL-13680 add plagiarism support for user submitted files - currently only added to single and advanced Assignment types - other modules to come in future.
2010-09-20 07:32:31 +00:00
Petr Skoda
4cc977a64d
fixing messed up property_exists() regression - sorrrry
2010-09-17 20:36:49 +00:00
Petr Skoda
c20b001bf4
fixed a few more property_exists()s
2010-09-17 19:20:39 +00:00
Martin Dougiamas
9645a4843a
MDL-16203 Updated the mod_created, mod_updated and mod_deleted events to be more generic and easier to handle
2010-07-08 02:27:58 +00:00
Petr Skoda
64f93798d4
MDL-22950 adding new component column to the files table, unfortunately this change requires changes in all 2.0dev code, please review all custom code that was already upgraded to 2.0; fixing multiple problems and regressions in mod/assignment
2010-07-03 13:37:13 +00:00
Rossiani Wijaya
377d7b82f6
MDL-20410 - remove set_focuscontrol (bulk commit)
2010-07-01 05:35:27 +00:00
Petr Skoda
54632b02b2
MDL-21782 removing oboslete tabs
2010-06-22 07:05:11 +00:00
Sam Hemelryk
7487c85699
course formats MDL-22647 Course format names are now properly supported and used. Big thanks to Brandon Turner for the patch.
2010-06-08 06:21:25 +00:00
Sam Hemelryk
ae2fa74f95
blocks MDL-22311 Fixed page layout for course/modedit.php
...
For future note and all those who read CVS commit messages calls to set pagelayout MUST come before any mforms instantiations.
2010-05-06 03:39:12 +00:00
Dan Marsden
e7983475fd
Events MDL-16203 - add user info to event trigger.
2010-05-02 22:43:35 +00:00
Dan Marsden
30b5ee6b06
Plagiarism Lib MDL-13680 - reverting commit for now.
2010-04-28 02:47:25 +00:00
Dan Marsden
cc3b3fae5d
Plagiarism Lib MDL-13680 - add Plagiarism lib support for modules. - initially including the assignment module and Turnitin service - Backup deliberately excluded at this stage and I expect some of the file handling to change slightly before 2.0 release.
2010-04-27 21:52:07 +00:00
Martin Dougiamas
5435c9dcc4
help strings MDL-21695 changed _hlp to _help and fixed help.php to format those strings properly
2010-04-23 07:46:35 +00:00
Sam Hemelryk
ba9dc077c4
roles MDL-22126 Fixed up usage of admin/roles/tags.php
2010-04-21 02:43:02 +00:00
Petr Skoda
3fc066917d
MDL-21695 adding support for module help
2010-04-13 21:59:15 +00:00
Dan Marsden
75ba5fe41a
Events MDL-16203 fire events when a module is added/updated/deleted
2010-03-22 02:56:45 +00:00
Sam Hemelryk
d0ccc7e93e
course MDL-19794 Set a better page layout (admin) for modedit
2010-02-01 07:49:33 +00:00
Petr Skoda
a685593466
MDL-21233 moodle_url improvemewnts, code simplification, more diagnostics; fixed several regressions
2010-01-16 15:39:56 +00:00
Petr Skoda
4bcc51185c
MDL-21217, MDL-21198 simplified/improved outputlib help icon related apis + several fixed regresions
2009-12-30 15:19:55 +00:00
Petr Skoda
191b267bcd
MDL-20790 more page layouts -see base theme for full list; also added new css body class for describing current layout; base layout is now default for beter BC; require_login() now sets 'incourse' layout automatically
2009-12-27 12:02:04 +00:00
Petr Skoda
b5d0cafc6f
MDL-20787 final switch to new $OUTPUT->pix_url() - yay!
2009-12-16 21:50:45 +00:00
Petr Skoda
683c01d2c8
MDL-20787 removed mod_icon_url() completely
2009-12-16 20:30:24 +00:00