Added back CMS_MODULE.register_modules (CMS_RESPONSE) as obsolete, to avoid breaking existing modules.

Note: all module SHOULD migrate to new hook setup!
This commit is contained in:
2015-12-07 21:24:48 +01:00
parent 6313007fbf
commit 276dcc6fcd
2 changed files with 27 additions and 0 deletions

View File

@@ -135,6 +135,15 @@ feature -- Router
feature -- Hooks configuration
register_hooks (a_response: CMS_RESPONSE)
obsolete
"!UNSAFE!: it is highly recommended to update this module and use setup_hooks [Dec/2015]."
require
is_enabled: is_enabled
do
setup_hooks (a_response.api.hooks)
end
setup_hooks (a_hooks: CMS_HOOK_CORE_MANAGER)
-- Module hooks configuration.
require