function sheetnode_phpexcel_get_plugins in Sheetnode 5
Same name and namespace in other branches
- 6 modules/sheetnode_phpexcel/sheetnode_phpexcel.module \sheetnode_phpexcel_get_plugins()
- 7.2 modules/sheetnode_phpexcel/sheetnode_phpexcel.module \sheetnode_phpexcel_get_plugins()
- 7 modules/sheetnode_phpexcel/sheetnode_phpexcel.module \sheetnode_phpexcel_get_plugins()
API function to fetch existing PHPExcel plugins.
6 calls to sheetnode_phpexcel_get_plugins()
- sheetnode_phpexcel_link in modules/
sheetnode_phpexcel/ sheetnode_phpexcel.module - Implementation of hook_link().
- sheetnode_phpexcel_menu in modules/
sheetnode_phpexcel/ sheetnode_phpexcel.module - Implementation of hook_menu().
- 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 - _sheetnode_phpexcel_export_do in modules/
sheetnode_phpexcel/ sheetnode_phpexcel.export.inc
File
- modules/
sheetnode_phpexcel/ sheetnode_phpexcel.module, line 55
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;
}