You are here

function loft_data_grids_info in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 loft_data_grids.module \loft_data_grids_info()

Return info about the export formats available

Parameters

type $string: description

Return value

array

  • path
  • loaded
  • name
  • description
  • version
  • author
  • installed

Related topics

2 calls to loft_data_grids_info()
loft_data_grids_requirements in ./loft_data_grids.install
Implements hook_requirements().
_loft_data_grids_get_exporter_names in ./loft_data_grids.module
Return an array of Exporter classnames dynamically loaded and cached

File

./loft_data_grids.module, line 46
Base module file for loft_data_grids

Code

function loft_data_grids_info() {
  static $info = array();
  if (empty($info)) {
    $info = array(
      'path' => drupal_get_path('module', 'loft_data_grids') . '/vendor/aklump/loft_data_grids',
      'loaded' => class_exists(loft_data_grids_ns('Exporter')),
    );
    $info_file = $info['path'] . '/loft_data_grids.info';
    if (($info['installed'] = file_exists($info_file)) && ($parsed = parse_ini_file($info_file))) {
      $info += $parsed;
    }
    $info += array(
      'name' => pathinfo(__FILE__, PATHINFO_FILENAME),
      'version' => '',
      'installed' => FALSE,
    );
  }
  return $info;
}