function _get_zip_from_github in Bibliography Module 7.2
Same name and namespace in other branches
- 6.2 modules/CiteProc/biblio_citeproc.admin.inc \_get_zip_from_github()
- 7 modules/CiteProc/biblio_citeproc.admin.inc \_get_zip_from_github()
1 string reference to '_get_zip_from_github'
- biblio_citeproc_style_manager_form_submit in modules/
CiteProc/ biblio_citeproc.admin.inc
File
- modules/
CiteProc/ biblio_citeproc.admin.inc, line 292
Code
function _get_zip_from_github(&$context = NULL) {
$zip_url = 'https://github.com/citation-style-language/styles/zipball/master';
$zip_file = system_retrieve_file($zip_url);
$filename = drupal_realpath($zip_file);
if (!empty($filename)) {
variable_set('github_zip', $filename);
}
}