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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user