101 Commits

Author SHA1 Message Date
Andrew Nicols
0d18f6d0d4 MDL-76867 core_admin: Migrate blocks admin ui to plugin management 2023-03-14 08:44:15 +08:00
Farhan Karmali
bb82d29dd9 MDL-75667 admin: Fix cross db query issue for blocks 2022-12-20 17:29:13 +05:30
Farhan Karmali
b4e5e47a0f MDL-75667 admin: Avoid DB calls within loops on admin/blocks.php 2022-12-16 18:53:58 +05:30
Sujith Haridasan
73d604369d MDL-71062 core: Step 1 deprecation of print_error function 2022-07-13 08:20:54 +05:30
Sara Arjona
a9f15ed952 MDL-73891 admin: Display a notification in manage blocks
An info notification has been added to the "Manage blocks"
page to warn admins about the "Unneeded blocks" theme setting.
2022-03-03 16:35:54 +01:00
Sara Arjona
9991ce2cce MDL-72720 block: Implement enable_plugin() method 2021-10-14 16:54:13 +02:00
Damyon Wiese
663640f5b3 MDL-40759 icons: convert uses of pix_url to pix_icon
Also change filepicker to use scaled svgs instead of sets of custom pngs. The svgs are taken from font-awesome.
2017-03-17 15:52:17 +08:00
Grzegorz Ziółek
3118ff6f41 MDL-56830 config_log: Add block plugin visibility changes to config_log. 2016-12-06 11:29:02 +01:00
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
David Mudrák
0d7c417175 MDL-55166 admin: Fix display of misleading debug warning on manage block
Blocks can declare has_config() as true without actually using the
default node in the admin tree. Typical use case is when the block
injects its settings to other parts of the admin tree and it assigns
null to its $setting node in its settings.php file.

As Janek L.B. correctly spotted, this led to false debugging message
on admin/blocks.php as the code interpreted it as missing settings.php
file.

The patch adds explicit file existence test for this rare case.
2016-07-27 23:15:48 +02:00
David Mudrák
8159f23e76 MDL-47979 blocks: Do not display link to legacy file admin/block.php
The deprecated file admin/block.php was removed in Moodle 2.6. Since
then, all blocks that declare has_config() must provide a settings.php
file.
2015-11-09 13:30:40 +01:00
Petr Škoda
e87214bda7 MDL-42078 multiple uninstall improvements and cleanup
Includes:
* update checker refactored to \core\update\ namespace
* plugininfo classes refactored to \core\plugininfo\ namespace
* plugin_manager renamed to core_plugin_manager
* redirect back to original page after plugin uninstall
* fixed assign subplugin uninstall
* move assign subplugins under the assignment in admin tree
* fixed plugininfo for all question related plugin types
* auth uninstall support
* added missing block dependencies
* added theme uninstall
* subplugin types are following the plugin on plugin overview page
* several performance improvements in plugin manager
* new warnigns when plugininfo are outdated or missing
* multiple fixes and other improvements
2013-10-07 13:10:36 +02:00
Petr Škoda
bde002b81a MDL-41437 rework plugin_manager caching and version info in blocks and modules
This patch includes:

* version column removed from modules table, now using standard config, this allows decimal version for modules
* version column removed from block table, now using standard config, this allows decimal version for blocks
* module version.php can safely use $plugins instead of module
* new plugin_manager bulk caching, this should help with MUC performance when logged in as admin
* all missing plugins are now in plugin overview (previously only blocks and modules)
* simplified code and improved coding style
* reworked plugin_manager unit tests - now using real plugins instead of mocks
* unit tests now fail if any plugin does not contain proper version.php file
* allow uninstall of deleted filters
2013-09-22 21:25:26 +02:00
Petr Škoda
2f1e464a88 MDL-40438 migrate all collatorlib:: and textlib:: uses 2013-08-06 21:04:35 +02:00
Petr Škoda
dd24dd37ee MDL-39088 use word "Uninstall" consistently in plugin administration UI 2013-06-27 22:20:36 +02:00
Petr Škoda
6584d8a861 MDL-39088 migrate block uninstallation to plugin_manager 2013-06-27 22:20:35 +02:00
David Mudrák
ad3ed98b05 MDL-34401 Replace ad-hoc plugin request caches with proper application caches
Data cached in these caches change only at well defined places (during
need for upgrade checks, at the plugin management screen etc). So it
makes sense to use proper application caches instead of request caches.

This saves couple of database queries at almost every page in Moodle.
2013-03-11 12:48:53 +01:00
Rossiani Wijaya
8be244b2e2 MDL-36553 Admin settings: make tables class consistent throughout admin plugins setting 2013-01-14 10:09:51 +08:00
Frederic Massart
fa9c0aab13 MDL-36633 usability: Styling over the admin pages 2012-11-21 17:29:13 +08:00
Petr Škoda
c82d309d07 MDL-34115 fix sorting in blocks admin UI
Comparison of arrays is not locale aware.
2012-06-30 08:33:34 +02:00
Petr Skoda
b85b25ebb8 MDL-31006 fix various notices in PHP54
PHP54 compatibility
2012-01-18 01:03:20 +01:00
Petr Skoda
544832790d MDL-30327 standardise block deletion process 2011-11-19 16:56:11 +01:00
Sam Hemelryk
d609d96261 MDL-28599 textlib Separated collator to collatorlib with static methods, and added support for locale aware sorting of objects 2011-09-06 15:39:00 +12:00
Marina Glancy
03909d79e4 MDL-26754: Removed unnecessary include 2011-08-11 13:39:30 +08:00
Marina Glancy
50c71e0af6 MDL-26754 Display blocks in 'manage blocks' alphabetically sorted 2011-08-04 14:05:41 +08:00
Marina Glancy
28e63a9d8c MDL-27122 Allow admin to change CFG->undeletableblocktypes on 'Manage blocks' settings page. Instances of protected block types will be undeletable only from site context 2011-07-29 13:51:40 +08:00
Dan Poltawski
f723bd3df5 blocks admin MDL-26827- allow blocks settings to be an admin externalpage
This borrows from Tim's technique for qtypes in 1650a33cb
2011-03-16 09:12:22 +00:00
Petr Skoda
a226a972f7 MDL-24321 switching to stdClass in /admin/ and / 2010-09-21 08:44:02 +00:00
Petr Skoda
8571833f0b MDL-23069 moving version and cron info into standard version.php - finally, yay! 2010-07-04 12:18:22 +00:00
Martin Dougiamas
dc5ba628f3 Typos in comments 2010-06-15 04:10:56 +00:00
Petr Skoda
ecd7978c05 MDL-22015 fixed more string_manager encapsulation issues 2010-04-14 14:38:33 +00:00
Petr Skoda
bd103fde5f MDL-22054 improving blocks management UI 2010-04-11 12:22:52 +00:00
Petr Skoda
15822fe21c MDL-22054 improving blocks management UI and removing debug message because the block manage page shows the correct info instead 2010-04-11 12:08:40 +00:00
Petr Skoda
61ef8f9f88 MDL-20204 removing deprecated admin headers 2010-03-31 08:05:53 +00:00
Sam Hemelryk
90723839ca themes MDL-21862 Implements base theme and standard theme.
Very big theme changes, standardold theme has been split into two themes base and standard. Base theme contains only CSS that is absolutly required (e.g. layout, white space rules, specific widths) and standard (which now looks like standardwhite) contains all the frills.
The following noteable changes have also been made:
  * Plugin CSS has been pushed back into the plugin directories as styles.css files.
  * Install_print_header has been corrected.
  * Redundant or deprecated rules have been removed.
  * Several minor class changes throughout Moodle.
  * CSS is now single line rules not multiline indented.
  * Installs with theme=standardold automatically switch to standard.
  * body classes / id now have prefixes to make it clearer what they are and avoid conflicts.
Also worth noting:
  * There is still alot of tweaking that is required to get everything looking as it is supposed to, please be patient or better yet help out.
  * I am currently working on the documentation for the themes system... it will be here soon.
2010-03-25 06:38:21 +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
20207b827a MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 10:57:00 +00:00
nicolasconnault
414a4a91b1 MDL-19787 upgraded calls to print_table, print_single_button, print_user_picture, print_container* and notice_yesno 2009-08-20 08:39:07 +00:00
nicolasconnault
8fbce1c8c8 MDL-19878 Upgraded calls to helpbutton, print_simple_box* and notify 2009-08-18 04:28:40 +00:00
nicolasconnault
73d6f52f6a MDL-19787 Converted all print_footer() calls 2009-08-06 14:12:46 +00:00
nicolasconnault
2fff8846f2 MDL-19787 Migrated calls to print_heading 2009-08-06 08:17:12 +00:00
tjhunt
95eecbd893 blocks editing ui: MDL-19398 block.multiple column no longer exists, so remove admin for it. 2009-07-15 08:24:12 +00:00
tjhunt
e727b6e5d5 blocks: MDL-19010 Delete weird line of legacy code. 2009-07-14 08:36:40 +00:00
tjhunt
6b608f8f50 MDL-19690 - lots more $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-02 10:53:31 +00:00
tjhunt
f474a4e583 blocks: MDL-19010 Fix further blocks-related breakage, including removing all references to blocks_insance_old outside blocklib.php 2009-05-07 08:55:10 +00:00
tjhunt
93d4a373f9 blocklib: MDL-19010 always include blocklib in setup.php, stip includes elsewhere 2009-05-06 09:13:16 +00:00
tjhunt
66b10689e2 blocklib: MDL-19010 upgrade database tables ready for now blocks system 2009-05-06 09:12:03 +00:00
tjhunt
625b51d4e0 upgrade refactoring: MDL-17458 remove references to block_is_compatible, since Petr deleted that function. 2009-02-11 06:43:23 +00:00
skodak
34a2faed92 MDL-16613 sesskey cleanup 2009-01-02 10:43:12 +00:00
skodak
e821d24c72 MDL-16613 sesskey cleanup 2009-01-02 10:43:12 +00:00