function sheetnode_google_init in Sheetnode 7
Same name and namespace in other branches
- 6 modules/sheetnode_google/sheetnode_google.module \sheetnode_google_init()
- 7.2 modules/sheetnode_google/sheetnode_google.module \sheetnode_google_init()
Implementation of hook_init().
File
- modules/
sheetnode_google/ sheetnode_google.module, line 79 - Module file for the sheetnode_google module. This extends sheetnodes to enable importing of Google sheets.
Code
function sheetnode_google_init() {
// Set PHP include_path to find Zend files.
$path = variable_get('sheetnode_zend_gdata_path', '');
if (empty($path)) {
return;
}
$include_path = ini_get('include_path');
if (FALSE === strpos($include_path, $path)) {
ini_set('include_path', $include_path . PATH_SEPARATOR . $path);
}
// Register the autoload function for Batch API.
spl_autoload_register('_sheetnode_google_autoload');
}