You are here

function _feeds_excel_include_libraries in Feeds Excel 6

Same name and namespace in other branches
  1. 7 feeds_excel.module \_feeds_excel_include_libraries()

Helper wrapper for library inclusion.

1 call to _feeds_excel_include_libraries()
FeedsExcelParser::parse in ./ExcelParser.inc
Implementation of FeedsParser::parse().

File

./feeds_excel.module, line 34

Code

function _feeds_excel_include_libraries() {

  // Try to get the basic path via libraries API.
  if (module_exists('libraries')) {
    $path = libraries_get_path('phpExcelReader');
    $reader = '/Excel/reader.php';
    $oleread = '/Excel/oleread.inc';

    // Import the external library
    require_once $path . $reader;
    require_once $path . $oleread;
  }
}