Advertisement
Guest User

Untitled

a guest
Feb 14th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. $batch = array(
  2. 'title' => t('Importing data'),
  3. 'operations' => array(),
  4. 'finished' => '_banjia_done',
  5. );
  6. // $state_user = banjia_user_batch_wrap($batch);
  7. $state_node_part_1 = banjia_fin_migrate_do_node_step1($batch);
  8. $c = 0;
  9. $d = 0;
  10. $g = 0;
  11. foreach ($batch['operations'] as $key => $value) {
  12. if ($value[1][2]) {
  13. $c++;
  14. $f = count($value[1][4]);
  15. if ($f > $d) {
  16. $d = $f;
  17. $g = $key;
  18. }
  19. }
  20. }
  21. dsm($d, 'total with namecheck');
  22. dsm($batch['operations'][$g]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement