loft_data_grids.api.php in Loft Data Grids 8
Same filename and directory in other branches
API documentation for loft_data_grids module.
File
loft_data_grids.api.phpView source
<?php
/**
* @file
* API documentation for loft_data_grids module.
*/
/**
* Implements hook_loft_data_grids_info_alter(&$info).
*
* @param array &$info
*/
function hook_loft_data_grids_info_alter(&$info) {
if (isset($info['MarkdownExporter'])) {
// Alter the class used for the markdown exporter.
$info['MarkdownExporter']['class'] = 'JSmith\\LoftDataGrids\\MarkdownExporter';
}
}
/**
* Implements hook_loft_data_grids_exporters_info().
*/
function hook_loft_data_grids_exporters_info(&$exporters) {
// Add in another custom exporter object, leveraging it's getInfo hook.
$info = new MyCoolExporter(new \AKlump\LoftDataGrids\ExportData());
$exporters[] = $info
->getInfo();
}
/**
* Implements hook_loft_data_grids_exporters_alter().
*
* Alter the array of exporter definitions.
*/
function hook_loft_data_grids_exporters_alter(array &$exporters) {
}
Functions
Name | Description |
---|---|
hook_loft_data_grids_exporters_alter | Implements hook_loft_data_grids_exporters_alter(). |
hook_loft_data_grids_exporters_info | Implements hook_loft_data_grids_exporters_info(). |
hook_loft_data_grids_info_alter | Implements hook_loft_data_grids_info_alter(&$info). |