progress_message complete
Этот коммит содержится в:
@@ -38,6 +38,17 @@ function batch_operations_test_page_view() {
|
||||
$batch['operations'][]=array('test_batch_operation',array());
|
||||
batch_operations_start($batch);
|
||||
break;
|
||||
|
||||
case 5:
|
||||
$batch['progress_message']='Current=%current%. Total=%total%.';
|
||||
$batch['operations'][]=array('test_batch_operation',array());
|
||||
$batch['operations'][]=array('test_batch_operation',array());
|
||||
$batch['operations'][]=array('test_batch_operation',array());
|
||||
$batch['operations'][]=array('test_batch_operation',array());
|
||||
$batch['operations'][]=array('test_batch_operation',array());
|
||||
batch_operations_start($batch);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -50,7 +61,8 @@ function batch_operations_test_page_view() {
|
||||
<li><a href="tools.php?page=batch-operations&id=0">$current_array is empty</a>
|
||||
<li><a href="tools.php?page=batch-operations-test&test=2">Default <strong>title</strong> & <strong>init_message</strong></a>
|
||||
<li><a href="tools.php?page=batch-operations-test&test=3">Set <strong>custom title</strong> & <strong>custom init_message</strong></a>
|
||||
<li><a href="tools.php?page=batch-operations-test&test=4">5 operations</a>
|
||||
<li><a href="tools.php?page=batch-operations-test&test=4">5 operations default <strong>progress_message</strong></a>
|
||||
<li><a href="tools.php?page=batch-operations-test&test=5">5 operations custom <strong>progress_message</strong></a>
|
||||
</ol>
|
||||
</div>
|
||||
<?php
|
||||
|
Ссылка в новой задаче
Block a user