You are here

function drupal_set_message in Coder 7.2

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 scripts/coder_format/coder_format.php \drupal_set_message()
15 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_upgrade_conversions_apply in coder_upgrade/includes/conversion.inc
Applies the module conversion code.
coder_upgrade_conversions_form_submit in coder_upgrade/includes/conversion.inc
Submit handler for the module conversion form.
coder_upgrade_create_theme_cache_submit in coder_upgrade/includes/settings.inc
Submit callback; creates a core theme information cache file.

... See full list

4 string references to 'drupal_set_message'
coder_review_i18n_reviews in coder_review/includes/coder_review_i18n.inc
Implements hook_reviews().
_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
_message in coder_review/coder_review.common.inc
Displays and retrieves messages.

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