function _drush_sql_get_post_sync_messages

8.0.x _drush_sql_get_post_sync_messages()
6.x _drush_sql_get_post_sync_messages()
7.x _drush_sql_get_post_sync_messages()
4.x _drush_sql_get_post_sync_messages()
5.x _drush_sql_get_post_sync_messages()
master _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.

3 calls to _drush_sql_get_post_sync_messages()
drush_sql_post_sql_sync in commands/sql/
Apply all post-sync operations that were registered in any pre-sync hook. Follow the pattern of this function to make your own post-sync hook. If changing the database, be sure to also include a pre-sync hook to notify the user of the change that will…
drush_sql_sanitize in commands/sql/
Command callback. Run's the sanitization operations on the current database.
drush_sql_sync in commands/sql/


commands/sql/, line 893
Drush sql commands


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;