- birthdays_sync_birthdays_to_profiles in contributions/birthdays/birthdays.sync.inc
- Birthdays to Profile submit handler.
- birthdays_sync_profiles_to_birthdays in contributions/birthdays/birthdays.sync.inc
- Profile to Birthdays submit handler.
birthdays_set_batch($title, $operation_callback)Set the batch for either synchronisation processes.
contributions/birthdays/birthdays.sync.inc, line 75
<?php
function birthdays_set_batch($title, $operation_callback) {
global $_birthdays_field;
$batch = array(
'title' => $title,
'operations' => array(
array($operation_callback, array($_birthdays_field)),
),
'finished' => 'batch_birthdays_sync_finished',
'init_message' => t('Synchronization is starting.'),
'progress_message' => t('Synchronizing'),
'file' => drupal_get_path('module', 'birthdays'). '/birthdays.sync.inc',
);
// Set the batch. It will start immediately, because it is called from a
// submit handler.
batch_set($batch);
}
?>