Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $items['some-pretty-url'] = array(
- 'title' => 'Title',
- 'page callback' => 'drupal_get_form',
- 'page arguments' => array('import_form'),
- 'access arguments' => array('access content'),
- 'type' => MENU_NORMAL_ITEM,
- );
- $batch = array(
- 'title' => t('Lorem ipsum Elit pariatur Duis et elit aute.'),
- 'init_message' => t('Commencing...'),
- 'operations' => $operations,
- 'progress_message' => t('Processed: @current out of @total.'),
- 'error_message' => t('An error occurred during processing.'),
- 'finished' => '_import_finished',
- );
- $items['some-pretty-url'] = array(
- 'title' => 'Title',
- 'page callback' => 'drupal_get_form',
- 'page arguments' => array('import_form'),
- 'access arguments' => array('access content'),
- 'type' => MENU_NORMAL_ITEM,
- 'file' => 'module_definition.inc', //move module to another file
- );
- $batch = array(
- 'title' => t('Lorem ipsum Elit pariatur Duis et elit aute.'),
- 'init_message' => t('Commencing...'),
- 'operations' => $operations,
- 'progress_message' => t('Processed: @current out of @total.'),
- 'error_message' => t('An error occurred during processing.'),
- 'finished' => '_import_finished',
- 'file' => 'module_definition.inc', //batch functions are here
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement