DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:event:common_user_link

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
devel:event:common_user_link [2014-05-06 19:48] Klap-indevel:event:common_user_link [2018-12-08 15:07] (current) – doc updated according to issue #2615 torpedo
Line 8: Line 8:
 ---- ----
  
-When the [[config:showuseras]] config is set to the user interwiki link, this event is signalled by [[xref>userlink()]] in [[xref>inc/common.php]]. Handlers can use it to implement there own formatted user name instead of the user [[:interwiki]] link.+When the [[config:showuseras]] config is set to the user interwiki link, this event is signalled by [[xref>userlink()]] in [[xref>inc/common.php]]. Handlers can use it to implement their own formatted user name instead of the user [[:interwiki]] link.
  
 ===== Passed Data ===== ===== Passed Data =====
 +The passed [[xref>Doku_Event]] object has the field: ''$data''.
  
-The passed $data structure:+The ''$data'' field is an array with the structure:
  
   * ''$data['username']'' The unique user name   * ''$data['username']'' The unique user name
Line 22: Line 23:
 The BEFORE event has only the ''username'' and ''textonly'' fields filled. The AFTER event has all field filled. The BEFORE event has only the ''username'' and ''textonly'' fields filled. The AFTER event has all field filled.
    
-===== Plugins handling this event =====+After that the COMMON_USER_LINK event is handled, the formatted user name stored in ''$data['userlink']'' will be returned  by [[xref>userlink()]].
  
-The following plugins are known to handle this event and their source code may be a good start for understanding and implementing a handler yourself. 
- 
-  * none 
  
 ===== See also ===== ===== See also =====
  
 +  * [[codesearch>COMMON_USER_LINK|Code related to this event]] used in any DokuWiki's files, plugins and templates
   * The [[config:showuseras]] config let you choice the user interwiki link as the user link format.    * The [[config:showuseras]] config let you choice the user interwiki link as the user link format. 
   * Default the user [[:interwiki|interwiki]] link is configured to refer to '':user:<username>''.   * Default the user [[:interwiki|interwiki]] link is configured to refer to '':user:<username>''.
devel/event/common_user_link.txt · Last modified: 2018-12-08 15:07 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