Skip to content

Commit

Permalink
Added new events for inline history plugin
Browse files Browse the repository at this point in the history
Signed-off-by: John Reese <jreese@leetcode.net>
  • Loading branch information
Frank Rodgers authored and amyreese committed Mar 27, 2009
1 parent 03c12fa commit 4db84e7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions account_prefs_inc.php
Expand Up @@ -299,6 +299,7 @@ function edit_account_prefs($p_user_id = null, $p_error_if_protected = true, $p_
</select>
</td>
</tr>
<?php event_signal( 'EVENT_ACCOUNT_PREF_UPDATE_FORM', array( $p_user_id ) ); ?>
<tr>
<td colspan="2" class="center">
<input type="submit" class="button" value="<?php echo lang_get( 'update_prefs_button' ) ?>" />
Expand Down
2 changes: 2 additions & 0 deletions account_prefs_update.php
Expand Up @@ -97,6 +97,8 @@
$t_prefs->refresh_delay = config_get( 'min_refresh_delay' );
}

event_signal( 'EVENT_ACCOUNT_PREF_UPDATE', array( $f_user_id ) );

user_pref_set( $f_user_id, $t_prefs );

html_page_top1();
Expand Down
4 changes: 4 additions & 0 deletions core/events_inc.php
Expand Up @@ -58,6 +58,10 @@
'EVENT_MANAGE_PROJECT_UPDATE' => EVENT_TYPE_EXECUTE,
'EVENT_MANAGE_PROJECT_PAGE' => EVENT_TYPE_EXECUTE,

# User account pages
'EVENT_ACCOUNT_PREF_UPDATE_FORM' => EVENT_TYPE_EXECUTE,
'EVENT_ACCOUNT_PREF_UPDATE' => EVENT_TYPE_EXECUTE,

# Bug report event
'EVENT_REPORT_BUG_FORM_TOP' => EVENT_TYPE_EXECUTE,
'EVENT_REPORT_BUG_FORM' => EVENT_TYPE_EXECUTE,
Expand Down

0 comments on commit 4db84e7

Please sign in to comment.