Added user roles management Improvement CMS_HOOK_FORM_ALTER design. Factorized code into CMS_WIDGET_COMPOSITE Use general notion of CMS_WIDGET (and CMS_FORM allows CMS_WIDGET, and not just CMS_FORM_ITEM) Fixed various CMS_WIDGET traversal, and fixed related issue for CMS forms Fixed CMS_FORM_CHECKBOX_INPUT when no value was set. Added CMS_FORM_DATA.cached_value .. to pass computed values during validation to submit actions (mainly for optimization) Added support for @include=filename in CMS_CONFIGURATION Added CMS_WIDGET_TABLE as filled version of CMS_WIDGET_AGENT_TABLE (renamed from previous CMS_WIDGET_TABLE) Many improvements to the CMS_FORM design Some improvements to CMS_MODULE ...
34 lines
754 B
Plaintext
34 lines
754 B
Plaintext
note
|
|
description: "[
|
|
Summary description for {CMS_HOOK_AUTO_REGISTER}.
|
|
When inheriting from this class, the declared hooks are automatically
|
|
registered, otherwise, each descendant has to add it to the cms service
|
|
itself.
|
|
]"
|
|
date: "$Date$"
|
|
revision: "$Revision$"
|
|
|
|
deferred class
|
|
CMS_HOOK_AUTO_REGISTER
|
|
|
|
inherit
|
|
CMS_HOOK
|
|
|
|
feature -- Hook
|
|
|
|
hook_auto_register (a_service: CMS_SERVICE)
|
|
do
|
|
if attached {CMS_HOOK_MENU_ALTER} Current as h_menu_alter then
|
|
a_service.add_menu_alter_hook (h_menu_alter)
|
|
end
|
|
if attached {CMS_HOOK_BLOCK} Current as h_block then
|
|
a_service.add_block_hook (h_block)
|
|
end
|
|
if attached {CMS_HOOK_FORM_ALTER} Current as h_block then
|
|
a_service.add_form_alter_hook (h_block)
|
|
end
|
|
|
|
end
|
|
|
|
end
|