You are here

function drupal_set_message in Coder 5.2

Same name and namespace in other branches
  1. 6.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()
7 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().
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.
file_copy in scripts/coder_format/coder_format.php
Copies a file to a new location. This is a powerful function that in many ways performs like an advanced version of copy().

... See full list

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";
  }
}