function _drush_sql_get_post_sync_messages

8.0.x sql.drush.inc _drush_sql_get_post_sync_messages()
6.x sql.drush.inc _drush_sql_get_post_sync_messages()
7.x sql.drush.inc _drush_sql_get_post_sync_messages()
4.x sql.drush.inc _drush_sql_get_post_sync_messages()
5.x sql.drush.inc _drush_sql_get_post_sync_messages()
master sql.drush.inc _drush_sql_get_post_sync_messages()

Builds a confirmation message for all post-sync operations.

Return value

string All post-sync operation messages concatenated together.

1 call to _drush_sql_get_post_sync_messages()
drush_sql_sanitize in commands/sql/sql.drush.inc
Command callback. Run's the sanitization operations on the current database.

File

commands/sql/sql.drush.inc, line 542
Drush sql commands

Code

function _drush_sql_get_post_sync_messages() {
  $messages = FALSE;

  $options = drush_get_context('post-sync-ops');
  if (!empty($options)) {
    $messages = dt('The following post-sync operations will be done on the destination:') . "\n";

    foreach ($options as $id => $data) {
      $messages .= "  * " . $data['message'] . "\n";
    }
  }

  return $messages;
}