function _message in Coder 7.2
Displays and retrieves messages.
Parameters
??? $message: (optional) ??? Defaults to NULL.
string $type: (optional) ??? Defaults to 'status'.
Return value
array ???
5 calls to _message()
- coder_review_page_form in coder_review/
coder_review.module - Implements hook_form().
- coder_review_print_drush_messages in coder_review/
coder_review.drush.inc - Prints Coder review messages in a format for drush use.
- do_coder_review in coder_review/
coder_review.common.inc - Performs a code review for a review array.
- do_coder_review_callback in coder_review/
coder_review.common.inc - Performs a 'callback' type of coder_review.
- _coder_review_sniffer_callback in coder_review/
includes/ coder_review_sniffer.inc - Rule callback: Runs the PHP_CodeSniffer rules.
File
- coder_review/
coder_review.common.inc, line 1703 - Common functions used by both the drush and form interfaces.
Code
function _message($message = NULL, $type = 'status') {
if (function_exists('drupal_set_message')) {
// @ignore security_dsm
drupal_set_message($message);
}
static $messages = array();
if ($message) {
$messages[$type][] = $message;
}
return $messages;
}