Skip to content

Commit

Permalink
Fixed #9265: Add an event to allow adding links to View Issues page.
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@5365 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
vboctor committed Jun 14, 2008
1 parent b58e5a4 commit 7b59a2e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/events_inc.php
Expand Up @@ -55,7 +55,10 @@
'EVENT_MENU_SUMMARY' => EVENT_TYPE_DEFAULT,
'EVENT_MENU_DOCS' => EVENT_TYPE_DEFAULT,
'EVENT_MENU_ACCOUNT' => EVENT_TYPE_DEFAULT,


##### View Issues Links
'EVENT_VIEW_ISSUES_LINKS' => EVENT_TYPE_DEFAULT,

##### Bug view events
'EVENT_VIEW_BUG_DETAILS' => EVENT_TYPE_EXECUTE,
'EVENT_VIEW_BUG_EXTRA' => EVENT_TYPE_EXECUTE,
Expand Down
11 changes: 11 additions & 0 deletions view_all_inc.php
Expand Up @@ -131,6 +131,17 @@
echo ' ';
print_bracket_link( 'freemind_page.php', lang_get( 'mindmap' ), true );
}

$t_links = event_signal( 'EVENT_VIEW_ISSUES_LINKS' );

foreach ( $t_links as $t_plugin => $t_hooks ) {
foreach( $t_hooks as $t_hook ) {
foreach( $t_hook as $t_label => $t_href ) {
echo ' ';
print_bracket_link( $t_href, $t_label );
}
}
}
?> </span>
</td>

Expand Down

0 comments on commit 7b59a2e

Please sign in to comment.