Hook order can now be set
Marty Vance <[email protected]> Thu, 09 Jul 2009 14:18:45 -0600
| Newsgroups | gmane.comp.cms.xaraya.devel |
|---|---|
| Organization | Xaraya |
| Message-ID | <[email protected]> |
A few hours ago I completed (I hope) the fix for bug 198: "Include a sort option for hooks" in com.xaraya.core revision c5444737d2657534b0c14f843c7071dc6bef0f5d. http://bugs.xaraya.com/show_bug.cgi?id=198 The order field in table xar_hooks has existed for years, but the UI for setting the order never existed until now. The UI is accessible via the hooks link on each module in modules-admin-list (modules-admin-modify-$id), which focuses on the caller module. If more than one module is hooked, an OrderSelect DD property appears below the available hooks where the user can shuffle the call order. The current implementation maintains hook order across all of a caller module's item types. Hooks enabled via modules-admin-hooks will get an order, however the sequence cannot be set there as that screen focuses on the called module. Regardless of which hooks UI is used, newly enabled hooks are appended to the end of the call order. Module developers can start planning enhancements to take advantage of this change in their modules. Of course, this change won't be officially available until 1.2.0 (or a possible RC) is released, but should appear in nightlies tonight (GMT). See also: http://www.xaraya.com/index.php/xarbb/topic/3459