Damyon Wiese
9d1402abd8
MDL-57232 blocks: Split undeletableblocktypes
...
There are 2 kinds of blocks that are undeletable. Those required by the
theme and those protected via the admin page ui. We only want the theme
ones to be auto created site wide if they don't exist - so we need to
rename the theme ones and split the logic.
2016-12-02 12:32:03 +08:00
Damyon Wiese
58ec5a315b
MDL-57176 blocks: Never never never dup blocks
...
Dont create duplicate blocks 'requiredbytheme' for any reason.
2016-11-28 14:48:02 +08:00
Marina Glancy
bf07b81543
MDL-56586 blocks: use template for non-JS add block selector
2016-11-24 14:24:59 +08:00
Marina Glancy
b1e5624ad9
MDL-56586 blocks: Fix mess with links to permissions
...
problem 1: links to blocks permissions changes were missing in boost
problem 2: when modifying link from dashboard user is returned to profile ('returnurl' passed but not respected)
problem 3: link to check permissions missing from category management page
fix: instead of respecting both 'return' and 'returnurl' parameter use only 'returnurl'
fix: use 'popup' layout when modifying permissions for a block
2016-11-24 14:24:59 +08:00
Marina Glancy
b11916d3e7
MDL-56586 blocks: allow theme to manage "Add a block" select
2016-11-24 14:24:56 +08:00
Damyon Wiese
1ac36fa9f7
MDL-56902 blocks: No theme blocks if fake blocks only
...
When showing only fake blocks, never auto create the blocks for the
theme. This would give you double blocks.
2016-11-23 11:07:32 +08:00
Damyon Wiese
51718b752d
MDL-56902 blocks: Prevent blocks returning when switching themes.
...
Now if the current theme requires some blocks that don't exist, they
will be created - but with a new flag that indicates this block should
only be returned if the current theme requires it. This allows flipping back
and forth between boost and clean without restoring the nav and settings blocks
in boost.
2016-11-22 14:53:24 +08:00
Damyon Wiese
848db61636
MDL-56006 blocks: Fix installation with no required blocks
...
Boost requires no blocks which was causing a failure on installation.
2016-10-25 10:15:20 +08:00
Damyon Wiese
c13115cbfa
MDL-55074 blocks: Remove default blocks from course and site
2016-10-21 12:40:05 +08:00
Damyon Wiese
0f73f3ab42
MDL-55074 blocks: navigation and settings blocks optional
...
This is a theme config setting.
They are forced on for behat always.
2016-10-21 12:37:33 +08:00
Michael Aherne
4582da2464
MDL-56319 blocks: Observe empty default blocks setting
2016-10-07 09:59:09 +01:00
Jun Pataleta
4eba620ae3
MDL-53425 blocklib: Perform deletion of block instances by chunk
2016-05-30 11:22:47 +08:00
Mark Nelson
581ea5013a
MDL-52035 core_block: avoid PHP error when there is no region
...
This occurs when sharing a quiz via the LTI provider when it
adds a 'fake block' for quiz navigation. There may be other
occurrences.
2016-04-26 12:08:31 +08:00
Frederic Massart
b14311b2cd
MDL-53760 competency: Set block_lp as default dashboard block
2016-04-18 11:06:01 +08:00
Mark Nelson
ea88fd4e66
MDL-48012 core: added pre_*_delete hooks
2016-03-15 16:58:46 +08:00
David Monllao
c35cf9bfcd
MDL-51702 blocks: Allow permission overrides in dashboard
2016-01-21 08:46:58 +08:00
Marina Glancy
c026a28d59
MDL-50851 core_tag: introduce tag collections
2016-01-10 15:25:43 +08:00
Frederic Massart
ad347f6874
MDL-46878 my: Allow admins to reset everyone's dashboard
2015-09-18 11:40:09 +08:00
Marina Glancy
7a4ff165cb
MDL-25451 roles: check if user can assign foles in block
2015-08-31 16:03:27 +08:00
Dan Poltawski
8930d28254
MDL-50663 blocks: minor style fixes
2015-07-21 15:42:34 +01:00
Skylar Kelty
56af0fbda8
MDL-50663 blocks: Fix /my/ page when in non-user context
2015-06-29 11:37:10 +01:00
Tim Hunt
e1ace26f11
MDL-49389 blocklib: avoid notices when moving blocks to the bottom
2015-03-13 14:27:11 +00:00
Mike Grant
b609413154
MDL-37470 blocklib: Respect block weight and offset
2015-02-12 09:37:52 +00:00
Andrew Nicols
4b410a6875
MDL-48544 blocks: Only add docked tags if all blocks are docked
...
Previously, if all blocks were hidden, then the region was reported as
being docked eroniously and it was not possible to unhide the blocks.
Docking should have no relation to the presence of block content.
2015-02-09 20:55:10 +08:00
Neill Magill
f95b1e85fb
MDL-48865 core_block: Show regions with only hidden blocks when editing
...
Before this patch if all the blocks in a block region are set to hidden the region will be docked even when editing is enabled.
This meant that as a user I would need to add a new block to the page and move it to that region via the configuration
menu before I could manipulate the hidden blocks again.
2015-02-03 16:14:20 +08:00
Sam Hemelryk
7594ed1e2a
Merge branch 'MDL-40419-master-2nd' of git://github.com/FMCorz/moodle
2014-12-04 12:03:18 +00:00
Frederic Massart
3af5725b74
MDL-40419 blocks: Function to get page type patterns from pattern
2014-11-27 15:28:51 +08:00
Andrew Nicols
29ac5a6bce
MDL-14402 blocks: Do not show assign roles on my home
2014-11-26 13:39:44 +08:00
Frederic Massart
00fd3c1aad
MDL-47189 my: Fix the addition of default blocks to my/ page
...
Fixing the upgrade script so that they attach the new blocks
to the right my_pages entry. An upgrade script has also been
added to fix the existing bad data.
2014-10-14 16:03:12 +08:00
Damyon Wiese
fff702acfd
Merge branch 'MDL-45897_my2' of https://github.com/andyjdavis/moodle
2014-08-05 12:06:36 +08:00
Andrew Davis
7623260459
MDL-45897 blocks: added 3 new default blocks to /my
2014-08-05 08:44:21 +08:00
Andrew Nicols
cbed1284f4
MDL-43506 Blocks: Remove various deprecated functions
2014-08-04 08:44:50 +08:00
Sam Hemelryk
23a9a5632c
Merge branch 'wip-MDL-45045_master' of git://github.com/gjb2048/moodle
...
Conflicts:
lib/yui/build/moodle-core-blocks/moodle-core-blocks-min.js
2014-04-22 10:46:51 +12:00
Sam Hemelryk
34df4e4ba4
MDL-43145 dock: fixed up region_completely_docked code to ignore empty regions
2014-04-11 10:34:31 +08:00
Gareth J Barnard
625fc64c73
MDL-45045 block theme: Fake blocks show empty region when editing and clicked.
2014-04-10 18:41:50 +01:00
Sam Hemelryk
292dcf047f
MDL-41551 blocks: added tracking and recognition of custom block regions
2014-04-06 15:17:47 +12:00
Andrew Nicols
803912ae69
MDL-40975 Blocks: Move most block actions into the block menu
2013-11-06 10:59:25 +08:00
Andrew Nicols
59849f7925
MDL-41516 Themes: Ensure that blocks are set up early
...
Blocks can require JavaScript which must be set up early in the page
lifecycle.
In order to do so, we should ensure that content is created in the standard
head setup before any other output is created so that any subsequent use of
block instances are no longer the first such use when they may already be
too late in the lifecycle.
2013-09-01 23:53:52 +01:00
Petr Škoda
2f1e464a88
MDL-40438 migrate all collatorlib:: and textlib:: uses
2013-08-06 21:04:35 +02:00
Sam Hemelryk
3665af78ca
MDL-39814 actionmenu: improved alignment, constraint handling, and accessibility
2013-07-30 16:15:26 +12:00
Sam Hemelryk
cf69a00a1c
MDL-39814 frontend: introduced an action_menu_action class
2013-07-30 16:15:05 +12:00
Sam Hemelryk
b59f2e3bef
MDL-39814 frontend: improved display of activities and the menu
2013-07-30 16:14:56 +12:00
Sam Hemelryk
e282c679e3
MDL-39814 frontend: improvements to course/block editing
2013-07-30 16:07:26 +12:00
Eloy Lafuente (stronk7)
fb1788c598
Merge branch 'MDL-40424-master' of git://github.com/FMCorz/moodle
...
Conflicts:
admin/oacleanup.php
2013-07-17 01:21:51 +02:00
Damyon Wiese
d981272e64
Merge branch 'wip-mdl-40428' of git://github.com/rajeshtaneja/moodle
2013-07-16 13:33:27 +08:00
Sam Hemelryk
a69a7e89b8
MDL-40167 dock: tidy up after first peer-review
2013-07-15 09:46:03 +12:00
Frederic Massart
2e4c0c9181
MDL-40424 libraries: Deprecate context_instance_preload_sql()
2013-07-12 17:41:49 +08:00
Rajesh Taneja
c592eea2d3
MDL-40428 Libraries: Deprecated delete_context
2013-07-11 12:18:55 +08:00
Ankit Agarwal
db314f34fb
MDL-40425 libraries: Remove context_instance_preload() from core
2013-07-09 15:55:51 +08:00
Frederic Massart
8e8891b76b
MDL-40403 libraries: Deprecate get_parent_contexts()
2013-07-09 13:34:44 +08:00