function _update_batch_create_message

Same name in other branches
  1. 9 core/modules/update/update.authorize.inc \_update_batch_create_message()
  2. 8.9.x core/modules/update/update.authorize.inc \_update_batch_create_message()
  3. 10 core/modules/update/update.authorize.inc \_update_batch_create_message()
  4. 11.x core/modules/update/update.authorize.inc \_update_batch_create_message()

Creates a structure of log messages.

Parameters

array $project_results: An associative array of results from the batch operation.

string $message: A string containing a log message.

bool $success: (optional) TRUE if the operation the message is about was a success, FALSE if there were errors. Defaults to TRUE.

1 call to _update_batch_create_message()
update_authorize_batch_copy_project in modules/update/update.authorize.inc
Implements callback_batch_operation().

File

modules/update/update.authorize.inc, line 313

Code

function _update_batch_create_message(&$project_results, $message, $success = TRUE) {
    $project_results[] = array(
        'message' => $message,
        'success' => $success,
    );
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.