You are here

feeds_excel.module in Feeds Excel 7.2

Same filename and directory in other branches
  1. 6 feeds_excel.module
  2. 7 feeds_excel.module

The main file of the feeds_excel module.

File

feeds_excel.module
View source
<?php

/**
 * @file
 * The main file of the feeds_excel module.
 */

/**
 * Implements hook_feeds_plugins().
 */
function feeds_excel_feeds_plugins() {
  $info = array();
  $info['FeedsExcelParser'] = array(
    'name' => 'Excel parser',
    'description' => 'Parse data in xls, xlsx formats.',
    'handler' => array(
      'parent' => 'FeedsParser',
      'class' => 'FeedsExcelParser',
      'file' => 'FeedsExcelParser.inc',
      'path' => drupal_get_path('module', 'feeds_excel'),
    ),
  );
  return $info;
}

/**
 * Implements hook_libraries_info().
 */
function feeds_excel_libraries_info() {
  $libraries = array();
  $libraries['PHPExcel'] = array(
    'name' => 'PHPExcel',
    'vendor url' => 'https://github.com/PHPOffice/PHPExcel',
    'download url' => 'https://github.com/PHPOffice/PHPExcel/archive/1.8.zip',
    'path' => 'Classes',
    'files' => array(
      'php' => array(
        'PHPExcel.php',
        'PHPExcel/IOFactory.php',
      ),
    ),
    'version arguments' => array(
      'file' => 'install.txt',
      'pattern' => '@version\\s+([0-9a-zA-Z\\.-]+)@',
      'lines' => 22,
    ),
  );
  return $libraries;
}