You are here

function drupal_set_message in Coder 6.2

Same name and namespace in other branches
  1. 5.2 scripts/coder_format/coder_format.php \drupal_set_message()
  2. 6 scripts/coder_format/coder_format.php \drupal_set_message()
  3. 7.2 scripts/coder_format/coder_format.php \drupal_set_message()
  4. 7 scripts/coder_format/coder_format.php \drupal_set_message()
8 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_page_form in ./coder.module
Implementation of hook_form().
coder_parse_ignores in ./coder.module
Parse an 'ignore' file.
file_check_directory in scripts/coder_format/coder_format.php
Check that the directory exists and is writable. Directories need to have execute permissions to be considered a directory by FTP servers, etc.

... See full list

3 string references to 'drupal_set_message'
_coder_i18n_drupal_set_message_without_t in includes/coder_i18n.inc
_coder_security_drupal_set_message_filter_t_warning in includes/coder_security.inc
_coder_security_drupal_set_message_filter_warning in includes/coder_security.inc

File

scripts/coder_format/coder_format.php, line 398
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";
  }
}