You are here

function biblio_citeproc_update_installed in Bibliography Module 7

1 string reference to 'biblio_citeproc_update_installed'
biblio_citeproc_style_manager_form in modules/CiteProc/biblio_citeproc.admin.inc

File

modules/CiteProc/biblio_citeproc.admin.inc, line 240

Code

function biblio_citeproc_update_installed($form, &$form_state) {
  $batch_op = array(
    'title' => t('Updating all installed styles from the main GitHub repository'),
    'operations' => array(
      array(
        '_get_zip_from_github',
        array(),
      ),
      array(
        'biblio_citeproc_update_installed_batch',
        array(),
      ),
    ),
    'progressive' => TRUE,
    'finished' => 'biblio_citeproc_update_installed_finished',
    'init_message' => t('Downloading file...'),
    'progress_message' => t('Updating styles...'),
    'file' => './' . drupal_get_path('module', 'biblio_citeproc') . '/biblio_citeproc.admin.inc',
  );
  batch_set($batch_op);
}