You are here

function _loft_data_get_possible_exporters in Loft Data Grids 7

Return an array of all possible Exporter classnames

Return value

array

Related topics

2 calls to _loft_data_get_possible_exporters()
loft_data_grids_export_info in ./loft_data_grids.module
Return info about the export formats available
loft_data_grids_requirements in ./loft_data_grids.install
Implements hook_requirements().

File

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

Code

function _loft_data_get_possible_exporters() {
  $classes = array(
    'CSVExporter',
    'TabTextExporter',
    'XLSXExporter',
    'FlatTextExporter',
    'XMLExporter',
    'JSONExporter',
    'YAMLExporter',
    'TextListExporter',
    'MarkdownExporter',
  );
  foreach ($classes as $key => $class) {
    if (!class_exists($class)) {
      unset($classes[$key]);
    }
  }
  return $classes;
}