You are here

function devel_generate_set_message in Devel 7

Set a message for either drush or the web interface.

Parameters

$msg: The message to display.

$type: The message type, as defined by drupal_set_message().

Return value

Context-appropriate message output.

1 call to devel_generate_set_message()
devel_generate_content in devel_generate/devel_generate.inc
The main API function for creating content.

File

devel_generate/devel_generate.module, line 411

Code

function devel_generate_set_message($msg, $type = 'status') {
  $function = function_exists('drush_log') ? 'drush_log' : 'drupal_set_message';
  $function($msg, $type);
}