Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -834,6 +834,11 @@ |
835 | 835 | $imagePage: ImagePage object ($this) |
836 | 836 | $output: $wgOut |
837 | 837 | |
| 838 | +'ImagePageAfterImageLinks': called after the image links section on an image |
| 839 | + page is built |
| 840 | +$imagePage: ImagePage object ($this) |
| 841 | +&$html: HTML for the hook to add |
| 842 | + |
838 | 843 | 'ImagePageFileHistoryLine': called when a file history line is contructed |
839 | 844 | $file: the file |
840 | 845 | $line: the HTML of the history line |
Index: trunk/phase3/includes/ImagePage.php |
— | — | @@ -132,6 +132,12 @@ |
133 | 133 | # Yet we return metadata about the target. Definitely an issue in the FileRepo |
134 | 134 | $this->imageRedirects(); |
135 | 135 | $this->imageLinks(); |
| 136 | + |
| 137 | + # Allow extensions to add something after the image links |
| 138 | + $html = ''; |
| 139 | + wfRunHooks( 'ImagePageAfterImageLinks', array( $this, &$html ) ); |
| 140 | + if ( $html) |
| 141 | + $wgOut->addHTML( $html ); |
136 | 142 | |
137 | 143 | if( $showmeta ) { |
138 | 144 | global $wgStylePath, $wgStyleVersion; |