function drush_notify_command_message

8.0.x notify.drush.inc drush_notify_command_message($command, $default = NULL)
6.x notify.drush.inc drush_notify_command_message($command, $default = NULL)
7.x notify.drush.inc drush_notify_command_message($command, $default = NULL)
master notify.drush.inc drush_notify_command_message($command, $default = NULL)

Determine the message to send on command completion.

Parameters

string $command: Name of the Drush command for which we check message overrides.

string $default: (Default: NULL) Default message to use if there are not notification message overrides.

Return value

string Message to use for notification.

3 calls to drush_notify_command_message()
drush_notify_shutdown_error in commands/core/notify.drush.inc
Shutdown function to signal on errors.
drush_pm_download in commands/pm/download.pm.inc
Command callback. Download Drupal core or any project.
notify_drush_exit in commands/core/notify.drush.inc
Implements hook_drush_exit().

File

commands/core/notify.drush.inc, line 88
Add system notifications as a new drush option.

Code

function drush_notify_command_message($command, $default = NULL) {
  if ($msg = drush_command_invoke_all('drush_help', 'notify:' . $command)) {
    $msg = implode("\n", $msg);
  }
  else {
    $msg = $default ? $default : $msg = $command . ': No news is good news.';
  }

  return $msg;
}