Skip to content

Instantly share code, notes, and snippets.

@dmclark
Created November 17, 2014 18:18
Show Gist options
  • Save dmclark/b57c98c7a3692e5ec7d3 to your computer and use it in GitHub Desktop.
Save dmclark/b57c98c7a3692e5ec7d3 to your computer and use it in GitHub Desktop.
<?php
function mit_qb_cron() {
if (variable_get('mit_qb_import_quickbase_during_cron', TRUE)) {
module_load_include('inc', 'mit_qb');
mit_qb_delete_and_reimport_quickbase();
}
}
/**
* Implements hook_libraries_info
*/
function mit_qb_libraries_info() {
$libs = array();
$libs['forceutf8'] = array(
'name' => 'PHP Class Encoding featuring popular Encoding::toUTF8() function',
'vendor url' => 'https://github.com/neitanod/forceutf8',
'download url' => 'https://github.com/neitanod/forceutf8.git',
'version arguments' => array(
'file' => 'Encoding.php',
'pattern' => '/(forceutf8)/',
),
'files' => array(
'php' => array('Encoding.php'),
),
);
return $libs;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment