DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:event:template_usertools_display

TEMPLATE_USERTOOLS_DISPLAY

Description:
Lets the usertools in supported templates be modified.
DefaultAction:
The default usertools are shown
Preventable:
yes
Added:
2013-11-18
Removed:
2017-09-01

This event is signalled by templates that use the tpl_toolsevent()'function. In inc/template.php the function tpl_toolsevent() implements the trigger. Handlers can use it to modify and extend the sitetools e.g. links to Profile, Admin, Login and Logout.

Note: this event was removed from the DokuWiki Template at 2017-09-01 and replaced by MENU_ITEMS_ASSEMBLY. Other templates may still use this event.

Passed Data

An array $data with two entries is passed:

  • $data['view'] with the value 'main' or 'detail'
  • $data['items'] with an array of the items which will displayed

The global config array contains the name of the active template in $conf['template'].

See also

devel/event/template_usertools_display.txt · Last modified: 2018-12-08 16:08 by torpedo

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki