Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -753,6 +753,12 @@ |
754 | 754 | $specialPageAliases: associative array of magic words synonyms |
755 | 755 | $lang: laguage code (string) |
756 | 756 | |
| 757 | +'LinkerLinkAttributes': At the end of Linker::getLinkAttributesInternal() just before the return |
| 758 | +&$this: Linker object |
| 759 | +$title: 'title' attribute string |
| 760 | +$class: 'class' attribute string |
| 761 | +&$result: Final attribute string |
| 762 | + |
757 | 763 | 'LinkerMakeExternalImage': At the end of Linker::makeExternalImage() just before the return |
758 | 764 | &$url: the image url |
759 | 765 | &$alt: the image's alt text |
Index: trunk/phase3/includes/Linker.php |
— | — | @@ -108,6 +108,7 @@ |
109 | 109 | $r .= " class=\"$class\""; |
110 | 110 | } |
111 | 111 | $r .= " title=\"$title\""; |
| 112 | + wfRunHooks( 'LinkerLinkAttributes', array( &$this, $title, $class, &$r ) ); |
112 | 113 | return $r; |
113 | 114 | } |
114 | 115 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -186,6 +186,7 @@ |
187 | 187 | the database is potentially queried |
188 | 188 | * (bug 9736) Redirects on Special:Fewestrevisions are now marked as such. |
189 | 189 | * New date/time formats in Cs localization according to ČSN and PČP. |
| 190 | +* Added new hook LinkerLinkAttributes for modifying attributes of <a> tags. |
190 | 191 | * HTML entities like now work (are not escaped) in edit summaries. |
191 | 192 | * (bug 13815) In the comment for page moves, use the colon-separator message |
192 | 193 | instead of a hardcoded colon. |