/functions/display_messages.php

Description

display_messages.php

This contains all messages, including information, error, and just about any other message you can think of.

Functions
error_box (line 130)

Displays error message

Since 1.4.1 function checks if page header is already displayed.

Since 1.4.3 and 1.5.1 function contains error_box hook. Use plain_error_message() and make sure that page header is created, if you want compatibility with 1.4.0 and older.

In 1.5.2 second function argument is changed. Older functions used it for $color array, new function uses it for optional link data. Function will ignore color array and use standard colors instead.

  • since: 1.3.2
void error_box (string $string, [array $link = NULL])
  • string $string: Error message to be displayed
  • array $link: Optional array containing link details to be displayed. Array uses three keys. 'URL' key is required and should contain link URL. 'TEXT' key is optional and should contain link name. 'FRAME' key is optional and should contain link target attribute.
error_message (line 26)

Displays error message and URL to message listing

Fifth argument ($color array) is removed in 1.5.2.

  • since: 1.0
void error_message (string $message, string $mailbox, integer $sort, integer $startMessage)
  • string $message: error message
  • string $mailbox: mailbox name
  • integer $sort: sort order
  • integer $startMessage: first message
error_option_save (line 170)

Adds message that informs about non fatal error that can happen while saving preferences

  • since: 1.5.1 and 1.4.5
void error_option_save (string $message)
  • string $message: error message
logout_error (line 55)

Displays error when user is logged out

Error strings can be overriden by logout_error hook

  • since: 1.2.6
void logout_error (string $errString, [string $errTitle = ''])
  • string $errString: error message
  • string $errTitle: title of page with error message
plain_error_message (line 43)

Displays error message

Second argument ($color array) is removed in 1.5.2.

  • since: 1.0
void plain_error_message (string $message)
  • string $message: error message

Documentation generated on Sat, 07 Oct 2006 16:10:44 +0300 by phpDocumentor 1.3.0RC6