57 Commits

Author SHA1 Message Date
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
b8514b6a1b MDL-33767 Course: The actions on default section redirect to the correct section 2012-07-13 08:59:19 +08:00
Mark Nelson
e01fbcf765 MDL-29538 core_condition: Integrated with the latest code, can now place user field conditions on sections as well 2012-06-26 15:18:53 +08:00
sam marshall
ce4dfd2703 MDL-24419 (4): Add conditional availability support to sections; section cache
Credit: original version done by Kirill Astashov of NetSpot (netspot.com.au),
finished and tweaked by sam.

This change adds conditional availability support for sections analagous to
that already available for activities. (Backend, UI, backup/restore.)

In order that this feature does not reduce performance, section cacheing has
also been added using a new course 'sectioncache' field analagous to modinfo.

The new feature integrates with activity availability so that activities
inside sections which are not available are automatically not available
themselves (meaning it works to restrict access).
2012-05-14 11:19:25 +01:00
Dan Poltawski
a5a38c9473 MDL-32508 course/editsection: add a sectionreturn param
This is used so that when editing on a section page you
are returned to the section in question.
2012-05-04 10:53:00 +08:00
Dan Poltawski
5218b9bb7d MDL-32508 course: Introduce course_get_url() 2012-05-04 10:52:58 +08:00
Sam Hemelryk
0a5ece3d3b navigation MDL-24783 Navigation cache is now cleared after editing a section name 2010-10-21 01:56:03 +00:00
Dongsheng Cai
ef106e5b28 "MDL-24210, added missing context to html editor" 2010-10-06 03:48:32 +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
David Mudrak
b54a05475a MDL-21695 Replaced summaries.html
AMOS BEGIN
 HLP summaries.html,[summary_help,core]
AMOS END
2010-06-28 17:05:05 +00:00
David Mudrak
09eb215121 MDL-22729 Course sections can be re-edited again
By the way, the current style of creating course_sections is ugly. We
should probably have something like
make_sure_that_at_least_default_section_exists($courseid, $sectionid=null)
and not to insert it into database at many places as we do now.
2010-06-10 18:25:06 +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
e34a326f72 course-section MDL-22262 Added a summaryformat field to the database and implemented it when editing/viewing sections and backup 2010-05-27 03:07:54 +00:00
Sam Hemelryk
0f4ab67d84 course MDL-20628 Added the ability to name a course section, thanks Michael for the initial patch 2010-04-23 07:17:21 +00:00
David Mudrak
0831fd7841 MDL-22054 Fixed 'Edit' string in core strings
AMOS BEGIN
 CPY [edit,core],[edita,core]
 REM do not forget to drop placeholder from [edit,core] in all languages
AMOS END
2010-04-20 17:57:12 +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
samhemelryk
d9cb06dc0e course MDL-19794 Replaced deprecated functions, added set_url calls and boilerplates 2009-09-25 05:24:13 +00:00
samhemelryk
3856ca5605 course MDL-19794 Updated print_header_simple and build_navigation to OUTPUT and PAGE equivalents 2009-09-08 01:33:56 +00:00
nicolasconnault
d60c112435 MDL-19794 Converted all print_footer() calls 2009-08-06 14:10:33 +00:00
skodak
a19a06d09e MDL-14589 file api improvements - converting more params to general $options array 2009-05-18 19:04:06 +00:00
skodak
a08171c5c2 MDL-19002 file upload limits support 2009-04-28 19:08:33 +00:00
tjhunt
edc0c49332 file api: MDL-18754 improve the names of some functions.
The new names are documented on
http://docs.moodle.org/en/Development:Convert_Draftarea_Files
2009-04-01 04:34:58 +00:00
skodak
644d506ac1 MDL-16698 towards new general editor element + converted course section summaries 2009-02-17 16:18:05 +00:00
stronk7
dfd74b5a72 MDL-10583 course format - discovered the get_section_name() that performs the fallback harcoded in previous commit. Merged from 19_STABLE 2009-02-05 13:30:08 +00:00
stronk7
f5ca86967b MDL-10583 course format - allow course formats to specify their section name ; merged from 19_STABLE 2009-02-05 13:13:31 +00:00
scyrma
1101dac08d MDL-14679: small fix for problem following db migration 2008-07-29 02:35:17 +00:00
skodak
294ce9870f MDL-15189 magic quotes finally removed 2008-06-09 16:53:30 +00:00
scyrma
264ad12641 MDL-14741 - Make tinymce work with the front page description.
TODO: convert the front page description form so it uses formslib
2008-06-06 01:49:07 +00:00
skodak
579d45b434 MDL-14679 converted some get courses 2008-06-01 18:12:24 +00:00
dongsheng
ba6018a902 "MDL-14129, fix print_error call under course/, see tracker" 2008-05-07 06:02:51 +00:00
dongsheng
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
nicolasconnault
0be6f67819 MDL-10870 All files updated to new build_navigation() method. Most are untested, because they are not easily accessible within a moodle site. 2007-08-17 19:09:11 +00:00
thepurpleblob
181eb9dd1f fix for bug MDL-7040. Form focus not defined 2006-10-17 12:41:55 +00:00
moodler
2fdcf5e360 FIx the header too by requiring login to the course 2006-10-01 09:31:49 +00:00
moodler
1a5a5b0e04 Fixed a typo causing MDL-6758 2006-10-01 09:26:50 +00:00
toyomoyo
3924b9884b adding capabilities 2006-09-05 08:50:23 +00:00
skodak
f8a5159a2b changes needed for new s() and p() - see bug #2338 2006-04-14 08:02:32 +00:00
skodak
2b38a593f0 fixed simple header bug #3406, patch submitted by samulik; merged from MOODLE_15_STABLE 2005-11-11 01:25:38 +00:00
thepurpleblob
59518de11e require_variable() and optional_variable() replaced with required_param() &
optinal_param() plus other tweeks to suit. Improve security.
2005-06-15 09:39:26 +00:00
ikawhero
116ae3b2e4 Merged from MOODLE_15_STABLE
Bug 3408.
2005-06-03 14:43:43 +00:00
stronk7
ef9b35a01b Tabs are out 2005-05-16 19:38:21 +00:00
moodler
810393c804 Removed THEME from many course files 2005-01-25 14:03:43 +00:00
stronk7
676eb5e8df course/editsection.php is using sesskey.
Merged from MOODLE_14_STABLE
2004-10-08 18:32:27 +00:00
gustav_delius
24f2b65a4d towards XHTML compliance 2004-09-12 12:21:27 +00:00
moodler
7613890851 BRANCH MERGE
These are the changes from MOODLE_13_STABLE, merged into trunk

The tag MOODLE_13_MERGED on the MOODLE_13_STABLE branch now refers to this point

The biggest changes here are the fixes for HTML editor in all standard modules
2004-06-04 06:17:30 +00:00
moodler
404cfbb836 Cleaned up this form a little to make it more consistent 2003-12-11 07:22:13 +00:00
moodler
bae53097c9 Removed some old editor stuff causing problems in IE 2003-11-17 01:56:43 +00:00
moodler
783da26290 A bit of an audit and a clean up of require_login to add consistency.
No major problems found, just some code tidy-up
2003-05-24 07:29:17 +00:00
moodler
1e5a2bf584 You can now use Richtext editor to edit section texts, plus the page is a
bit more consistent now
2003-03-11 05:43:39 +00:00