Skip to content

Commit

Permalink
Added events for bug report/update forms signalled at the top of the …
Browse files Browse the repository at this point in the history
…form.
  • Loading branch information
amyreese committed Nov 18, 2008
1 parent 8d07174 commit 9ac264a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions bug_report_advanced_page.php
Expand Up @@ -164,6 +164,7 @@
</td>
</tr>

<?php event_signal( 'EVENT_REPORT_BUG_FORM_TOP', array( $t_project_id, true ) ); ?>

<!-- Category -->
<tr <?php echo helper_alternate_class() ?>>
Expand Down
1 change: 1 addition & 0 deletions bug_report_page.php
Expand Up @@ -138,6 +138,7 @@
</td>
</tr>

<?php event_signal( 'EVENT_REPORT_BUG_FORM_TOP', array( $t_project_id, false ) ); ?>

<!-- Category -->
<tr <?php echo helper_alternate_class() ?>>
Expand Down
1 change: 1 addition & 0 deletions bug_update_advanced_page.php
Expand Up @@ -88,6 +88,7 @@
</td>
</tr>

<?php event_signal( 'EVENT_UPDATE_BUG_FORM_TOP', array( $f_bug_id, true ) ) ?>

<tr class="row-category">
<td width="15%">
Expand Down
1 change: 1 addition & 0 deletions bug_update_page.php
Expand Up @@ -90,6 +90,7 @@
</td>
</tr>

<?php event_signal( 'EVENT_UPDATE_BUG_FORM_TOP', array( $f_bug_id, false ) ) ?>

<tr class="row-category">
<td width="15%">
Expand Down
2 changes: 2 additions & 0 deletions core/events_inc.php
Expand Up @@ -54,6 +54,7 @@
'EVENT_MENU_ISSUE' => EVENT_TYPE_DEFAULT,

# Bug report event
'EVENT_REPORT_BUG_FORM_TOP' => EVENT_TYPE_EXECUTE,
'EVENT_REPORT_BUG_FORM' => EVENT_TYPE_EXECUTE,
'EVENT_REPORT_BUG_DATA' => EVENT_TYPE_CHAIN,
'EVENT_REPORT_BUG' => EVENT_TYPE_EXECUTE,
Expand All @@ -67,6 +68,7 @@
'EVENT_VIEW_BUGNOTE_ADD' => EVENT_TYPE_EXECUTE,

# Bug update events
'EVENT_UPDATE_BUG_FORM_TOP' => EVENT_TYPE_EXECUTE,
'EVENT_UPDATE_BUG_FORM' => EVENT_TYPE_EXECUTE,
'EVENT_UPDATE_BUG' => EVENT_TYPE_CHAIN,

Expand Down

0 comments on commit 9ac264a

Please sign in to comment.