diff --git a/bug_update_advanced_page.php b/bug_update_advanced_page.php index 960a41feac..fa8918ce8e 100644 --- a/bug_update_advanced_page.php +++ b/bug_update_advanced_page.php @@ -140,7 +140,7 @@ } -event_signal( 'EVENT_UPDATE_BUG_FORM_TOP', array( $tpl_bug_id, true ) ); +event_signal( 'EVENT_UPDATE_BUG_FORM_TOP', array( $tpl_bug_id ) ); if ( $tpl_show_id || $tpl_show_project || $tpl_show_category || $tpl_show_view_state || $tpl_show_date_submitted | $tpl_show_last_updated ) { # @@ -578,7 +578,7 @@ echo ''; } -event_signal( 'EVENT_UPDATE_BUG_FORM', array( $tpl_bug_id, true ) ); +event_signal( 'EVENT_UPDATE_BUG_FORM', array( $tpl_bug_id ) ); # spacer echo ''; diff --git a/core/event_api.php b/core/event_api.php index 4dbaa42317..aed28f443b 100644 --- a/core/event_api.php +++ b/core/event_api.php @@ -257,8 +257,9 @@ function event_type_output( $p_event, $p_callbacks, $p_params = null ) { * final callback's return value will be returned to the event origin. * @param string Event name * @param array Array of callback function/plugin basename key/value pairs - * @param string Input string - * @return string Output string + * @param mixed Input data + * @param array $p_params Parameters. + * @return mixed Output data * @access public */ function event_type_chain( $p_event, $p_callbacks, $p_input, $p_params ) { diff --git a/docbook/developers/en/event-reference-manage.sgml b/docbook/developers/en/event-reference-manage.sgml index b97a887bda..dc2aa10b5a 100644 --- a/docbook/developers/en/event-reference-manage.sgml +++ b/docbook/developers/en/event-reference-manage.sgml @@ -14,6 +14,12 @@ Any output here should be defining appropriate rows and columns for the surrounding <table> elements. + + + Parameters + <Boolean>: whether user is administrator + + diff --git a/docbook/developers/en/event-reference-output.sgml b/docbook/developers/en/event-reference-output.sgml index 33ccabcb03..49f25f5452 100644 --- a/docbook/developers/en/event-reference-output.sgml +++ b/docbook/developers/en/event-reference-output.sgml @@ -22,13 +22,13 @@ Parameters - String: bug ID string to be displayed - Int: bug ID number + <String>: bug ID string to be displayed + <Integer>: bug ID number Return Value - String: modified bug ID string + <String>: modified bug ID string @@ -46,12 +46,32 @@ Parameters - String: input string to be displayed + <String>: input string to be displayed Return Value - String: modified input string + <String>: modified input string + + + + +
+ EVENT_DISPLAY_EMAIL_BUILD_SUBJECT (Chained) + +
+ + This is an event to format the subject line of an email before it is sent. + + + + Parameters + <String>: input string for email subject + + + + Return Value + <String>: modified subject string
@@ -69,12 +89,13 @@ Parameters - String: input string to be displayed + <String>: input string to be displayed Return Value - String: modified input string + <String>: modified input string + <Boolean>: multiline input string @@ -91,13 +112,13 @@ Parameters - String: input string to be displayed - Boolean: multiline input string + <String>: input string to be displayed + <Boolean>: multiline input string Return Value - String: modified input string + <String>: modified input string @@ -114,13 +135,13 @@ Parameters - String: input string to be displayed - Boolean: multiline input string + <String>: input string to be displayed + <Boolean>: multiline input string Return Value - String: modified input string + <String>: modified input string @@ -145,7 +166,7 @@ Return Value - Array: List of HTML links for the user account menu. + <Array>: List of HTML links for the user account menu. @@ -160,7 +181,7 @@ Return Value - Array: List of HTML links for the documents menu. + <Array>: List of HTML links for the documents menu. @@ -175,7 +196,7 @@ Return Value - Array: List of HTML links for the issue list menu. + <Array>: List of HTML links for the issue list menu. @@ -188,9 +209,14 @@ menu available to users when viewing issues. + + Parameters + <Integer>: bug ID + + Return Value - Array: List of HTML links for the documents menu. + <Array>: List of HTML links for the documents menu. @@ -208,7 +234,7 @@ Return Value - Array: List of HTML links for the main menu. + <Array>: List of HTML links for the main menu. @@ -226,7 +252,7 @@ Return Value - Array: List of HTML links for the main menu. + <Array>: List of HTML links for the main menu. @@ -243,7 +269,7 @@ Return Value - Array: List of HTML links for the management menu. + <Array>: List of HTML links for the management menu. @@ -260,7 +286,7 @@ Return Value - Array: List of HTML links for the manage configuration menu. + <Array>: List of HTML links for the manage configuration menu. @@ -275,7 +301,7 @@ Return Value - Array: List of HTML links for the summary menu. + <Array>: List of HTML links for the summary menu. @@ -303,7 +329,7 @@ Return Value - String: HTML code to output. + <String>: HTML code to output. @@ -319,7 +345,7 @@ Return Value - String: HTML code to output. + <String>: HTML code to output. @@ -334,7 +360,7 @@ Return Value - String: HTML code to output. + <String>: HTML code to output. @@ -349,7 +375,7 @@ Return Value - String: HTML code to output. + <String>: HTML code to output. @@ -365,7 +391,7 @@ Return Value - String: HTML code to output. + <String>: HTML code to output. @@ -381,7 +407,7 @@ Return Value - String: HTML code to output. + <String>: HTML code to output. @@ -397,7 +423,28 @@ Return Value - String: HTML code to output. + <String>: HTML code to output. + + + + +
+ EVENT_VIEW_BUG_ATTACHMENT (Output) +
+ + This event allows plugins to output HTML code immediately after the line of an attachment. + Receives the attachement data as a parameter, in the form of an attachment array from within + the array returned by the file_get_visible_attachments() function. + + + + Parameters + <Array>: the attachment data as an array (see core/file_api.php) + + + + Return Value + <String>: HTML code to output.
diff --git a/docbook/developers/en/event-reference.sgml b/docbook/developers/en/event-reference.sgml index bd2482edd6..ab22b18dd1 100644 --- a/docbook/developers/en/event-reference.sgml +++ b/docbook/developers/en/event-reference.sgml @@ -108,6 +108,10 @@ This event receives the logging string as a parameter. + + Parameters + <String>: the logging string +