Skip to content

Commit

Permalink
Allow plugins to hook the project management page.
Browse files Browse the repository at this point in the history
  • Loading branch information
amyreese committed Jan 9, 2009
1 parent e3f6805 commit 1ef8ab4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/events_inc.php
Expand Up @@ -51,6 +51,9 @@

# Management pages
'EVENT_MANAGE_OVERVIEW_INFO' => EVENT_TYPE_OUTPUT,
'EVENT_MANAGE_PROJECT_FORM' => EVENT_TYPE_EXECUTE,
'EVENT_MANAGE_PROJECT_UPDATE' => EVENT_TYPE_EXECUTE,
'EVENT_MANAGE_PROJECT_PAGE' => EVENT_TYPE_EXECUTE,

# Bug report event
'EVENT_REPORT_BUG_FORM_TOP' => EVENT_TYPE_EXECUTE,
Expand Down
3 changes: 3 additions & 0 deletions manage_proj_edit_page.php
Expand Up @@ -142,6 +142,8 @@
</td>
</tr>

<?php event_signal( 'EVENT_MANAGE_PROJECT_FORM', array( $f_project_id ) ); ?>

<!-- Submit Button -->
<tr>
<td>&nbsp;</td>
Expand Down Expand Up @@ -625,6 +627,7 @@
}
?>

<?php event_signal( 'EVENT_MANAGE_PROJECT_PAGE', array( $f_project_id ) ); ?>

<!-- PROJECT VIEW STATUS -->
<br />
Expand Down
1 change: 1 addition & 0 deletions manage_proj_update.php
Expand Up @@ -41,6 +41,7 @@
access_ensure_project_level( config_get( 'manage_project_threshold' ), $f_project_id );

project_update( $f_project_id, $f_name, $f_description, $f_status, $f_view_state, $f_file_path, $f_enabled, $f_inherit_global );
event_signal( 'EVENT_MANAGE_PROJECT_UPDATE', array( $f_project_id ) );

form_security_purge( 'manage_proj_update' );

Expand Down

0 comments on commit 1ef8ab4

Please sign in to comment.