function sheetnode_google_init in Sheetnode 6
Same name and namespace in other branches
- 7.2 modules/sheetnode_google/sheetnode_google.module \sheetnode_google_init()
- 7 modules/sheetnode_google/sheetnode_google.module \sheetnode_google_init()
Implementation of hook_init().
File
- modules/
sheetnode_google/ sheetnode_google.module, line 112
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');
}