function sheetnode_phpexcel_get_plugins in Sheetnode 7
Same name and namespace in other branches
- 5 modules/sheetnode_phpexcel/sheetnode_phpexcel.module \sheetnode_phpexcel_get_plugins()
- 6 modules/sheetnode_phpexcel/sheetnode_phpexcel.module \sheetnode_phpexcel_get_plugins()
- 7.2 modules/sheetnode_phpexcel/sheetnode_phpexcel.module \sheetnode_phpexcel_get_plugins()
API function to fetch existing PHPExcel plugins.
7 calls to sheetnode_phpexcel_get_plugins()
- sheetnode_phpexcel_menu in modules/
sheetnode_phpexcel/ sheetnode_phpexcel.module - Implements hook_menu().
- sheetnode_phpexcel_node_view in modules/
sheetnode_phpexcel/ sheetnode_phpexcel.module - Implements hook_node_view().
- sheetnode_phpexcel_plugin_style::attach_to in modules/
sheetnode_phpexcel/ sheetnode_phpexcel_plugin_style.inc - sheetnode_phpexcel_plugin_style::options_form in modules/
sheetnode_phpexcel/ sheetnode_phpexcel_plugin_style.inc - Provide a form to edit options for this plugin.
- _sheetnode_phpexcel_batch_export_finished in modules/
sheetnode_phpexcel/ sheetnode_phpexcel.export.inc - Batch API callback upon export completion.
File
- modules/
sheetnode_phpexcel/ sheetnode_phpexcel.module, line 78 - Module file for the sheetnode_phpexcel module. This manages handling of files for sheetnode.
Code
function sheetnode_phpexcel_get_plugins($dir = 'all') {
$plugins = module_invoke_all('sheetnode_phpexcel_plugins');
drupal_alter('sheetnode_phpexcel_plugins', $plugins);
if ($dir != 'all') {
foreach ($plugins as $format => $plugin) {
if (empty($plugin[$dir])) {
unset($plugins[$format]);
}
}
}
return $plugins;
}