Advertisement
Guest User

Untitled

a guest
Sep 1st, 2014
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. $items['some-pretty-url'] = array(
  2. 'title' => 'Title',
  3. 'page callback' => 'drupal_get_form',
  4. 'page arguments' => array('import_form'),
  5. 'access arguments' => array('access content'),
  6. 'type' => MENU_NORMAL_ITEM,
  7. );
  8.  
  9. $batch = array(
  10. 'title' => t('Lorem ipsum Elit pariatur Duis et elit aute.'),
  11. 'init_message' => t('Commencing...'),
  12. 'operations' => $operations,
  13. 'progress_message' => t('Processed: @current out of @total.'),
  14. 'error_message' => t('An error occurred during processing.'),
  15. 'finished' => '_import_finished',
  16. );
  17.  
  18. $items['some-pretty-url'] = array(
  19. 'title' => 'Title',
  20. 'page callback' => 'drupal_get_form',
  21. 'page arguments' => array('import_form'),
  22. 'access arguments' => array('access content'),
  23. 'type' => MENU_NORMAL_ITEM,
  24. 'file' => 'module_definition.inc', //move module to another file
  25. );
  26.  
  27. $batch = array(
  28. 'title' => t('Lorem ipsum Elit pariatur Duis et elit aute.'),
  29. 'init_message' => t('Commencing...'),
  30. 'operations' => $operations,
  31. 'progress_message' => t('Processed: @current out of @total.'),
  32. 'error_message' => t('An error occurred during processing.'),
  33. 'finished' => '_import_finished',
  34. 'file' => 'module_definition.inc', //batch functions are here
  35. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement