You are here

function sheetnode_google_init in Sheetnode 7.2

Same name and namespace in other branches
  1. 6 modules/sheetnode_google/sheetnode_google.module \sheetnode_google_init()
  2. 7 modules/sheetnode_google/sheetnode_google.module \sheetnode_google_init()

Implementation of hook_init().

File

modules/sheetnode_google/sheetnode_google.module, line 90
Module file for the sheetnode_google module.

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');
}