You are here

function drupal_set_message in Coder 7

Same name and namespace in other branches
  1. 5.2 scripts/coder_format/coder_format.php \drupal_set_message()
  2. 6.2 scripts/coder_format/coder_format.php \drupal_set_message()
  3. 6 scripts/coder_format/coder_format.php \drupal_set_message()
  4. 7.2 scripts/coder_format/coder_format.php \drupal_set_message()
16 calls to drupal_set_message()
coder_format_file in scripts/coder_format/coder_format.inc
Reads, backups, processes and writes the source code from and to a file.
coder_format_recursive in scripts/coder_format/coder_format.inc
Recursively process .module and .inc files in directory with coder_format_file().
coder_review_page_form in coder_review/coder_review.module
Implements hook_form().
coder_review_parse_ignores in coder_review/coder_review.module
Parse an 'ignore' file.
coder_upgrade_conversions_apply in coder_upgrade/includes/conversion.inc
Applies the module conversion code.

... See full list

3 string references to 'drupal_set_message'
_coder_review_i18n_drupal_set_message_without_t in coder_review/includes/coder_review_i18n.inc
_coder_review_security_drupal_set_message_filter_t_warning in coder_review/includes/coder_review_security.inc
_coder_review_security_drupal_set_message_filter_warning in coder_review/includes/coder_review_security.inc

File

scripts/coder_format/coder_format.php, line 395
Coder format shell invocation script.

Code

function drupal_set_message($message = NULL, $type = 'status') {
  if ($type == 'error') {
    echo str_repeat('-', 80);
    echo "\nERROR: {$message}\n";
    echo str_repeat('-', 80);
    echo "\n";
  }
  else {
    echo "{$message}\n";
  }
}